From 2ff7d7a388c75d334b746eb385ad8afdfa3277da Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 12 Jan 2020 23:47:08 +0100 Subject: [PATCH] meson: globally opt out of unsafe math optimizations Thus closing issue #49, with a decision to opt for fully predictable math, and increasing the ability to extend the use of hashes in result image tests in GEGL. --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 8c7d522..11ffdc9 100644 --- a/meson.build +++ b/meson.build @@ -159,6 +159,7 @@ common_c_flags = [] if buildtype == 'debugoptimized' or buildtype == 'release' common_c_flags += cc.get_supported_arguments(['-Ofast']) endif +common_c_flags += cc.get_supported_arguments(['-fno-unsafe-math-optimizations']) extra_warnings_list = [ '-Wdeclaration-after-statement', -- 2.30.2