diff options
author | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-30 02:42:10 +0200 |
---|---|---|
committer | Hein-Pieter van Braam <hp@tmm.cx> | 2017-08-30 11:51:24 +0200 |
commit | d44414c7112336fddbbb1eee782982b638690e70 (patch) | |
tree | a70d6908c7aec949de64c57fd935939d59e1d513 /modules/etc | |
parent | 181420f3b229f8e40a1bfe7bfafd3f3a19af0d32 (diff) |
Disable -ffast-math for etc2comp
Apparently -ffast-math generates incorrect code with recent versions of
GCC and Clang. The manual page for GCC warns about this possibility.
In my tests it doesn't actually appear to be measurably slower in this
case, and this is used in a batch process so it seems safe to disable
this.
This fixes #10758 and fixes #10070
Diffstat (limited to 'modules/etc')
-rw-r--r-- | modules/etc/SCsub | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/etc/SCsub b/modules/etc/SCsub index 8f5937017e..f0c1ee64b9 100644 --- a/modules/etc/SCsub +++ b/modules/etc/SCsub @@ -35,3 +35,7 @@ env_etc.add_source_files(env.modules_sources, "*.cpp") # upstream uses c++11 env_etc.Append(CXXFLAGS="-std=gnu++11") +# -ffast-math seems to be incompatible with ec2comp on recent versions of +# GCC and Clang +if '-ffast-math' in env_etc['CCFLAGS']: + env_etc['CCFLAGS'].remove('-ffast-math') |