Re: Defend against -ffast-math in meson builds - Mailing list pgsql-hackers

From Nazir Bilal Yavuz
Subject Re: Defend against -ffast-math in meson builds
Date
Msg-id CAN55FZ30kaUtAPAqtqCXJxgcCzDR1mieT-XhQfaL7qdtGMZF2w@mail.gmail.com
Whole thread Raw
In response to Defend against -ffast-math in meson builds  (Bertrand Drouvot <bertranddrouvot.pg@gmail.com>)
List pgsql-hackers
Hi,

On Wed, 11 Mar 2026 at 14:52, Bertrand Drouvot
<bertranddrouvot.pg@gmail.com> wrote:
>
> Hi hackers,
>
> while working on a patch (not shared yet), I had issues with floating-point and
> realized that we don't defend against -ffast-math in meson builds. We defend
> against in autoconf (because we don't want fast-math optimizations [1]), so the
> attached does the same for meson.
>
> [1]: https://postgr.es/m/424007.1644003689%40sss.pgh.pa.us

You are right. I applied the patch and confirmed that it works.

-- 
Regards,
Nazir Bilal Yavuz
Microsoft



pgsql-hackers by date:

Previous
From: Boris Mironov
Date:
Subject: Re: Idea to enhance pgbench by more modes to generate data (multi-TXNs, UNNEST, COPY BINARY)
Next
From: KAZAR Ayoub
Date:
Subject: Re: Speed up COPY FROM text/CSV parsing using SIMD