Defend against -ffast-math in meson builds

From: Bertrand Drouvot <bertranddrouvot(dot)pg(at)gmail(dot)com>
To: pgsql-hackers(at)lists(dot)postgresql(dot)org
Subject: Defend against -ffast-math in meson builds
Date: 2026-03-11 11:52:28
Message-ID: abFXfKC8zR0Oclon@ip-10-97-1-34.eu-west-3.compute.internal
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

Regards,

--
Bertrand Drouvot
PostgreSQL Contributors Team
RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
v1-0001-Defend-against-ffast-math-in-meson-builds.patch text/x-diff 949 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next 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)
Previous Message Nazir Bilal Yavuz 2026-03-11 11:36:46 Re: Speed up COPY FROM text/CSV parsing using SIMD