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
This commit is contained in:
parent
181420f3b2
commit
d44414c711
2 changed files with 7 additions and 1 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue