Re: Defend against -ffast-math in meson builds

From: Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>
To: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Re: Defend against -ffast-math in meson builds
Date: 2026-03-11 11:59:16
Message-ID: CAN55FZ30kaUtAPAqtqCXJxgcCzDR1mieT-XhQfaL7qdtGMZF2w@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

On Wed, 11 Mar 2026 at 14:52, Bertrand Drouvot
<bertranddrouvot(dot)pg(at)gmail(dot)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

In response to

Browse pgsql-hackers by date

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