meson: globally opt out of unsafe math optimizations
authorØyvind Kolås <pippin@gimp.org>
Sun, 12 Jan 2020 22:47:08 +0000 (23:47 +0100)
committerØyvind Kolås <pippin@gimp.org>
Sun, 12 Jan 2020 22:47:11 +0000 (23:47 +0100)
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

index 8c7d5222f2fd17a0b2babb3cba0f0924bdcd3b78..11ffdc91e387ba894b1d22e1970f41a8de150231 100644 (file)
@@ -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',