forked from mirrors/principia
Decrease the amount of math optimisation flags
Found one thing that breaks with fast-math on GCC (breadboard texture), who knows what else may be broken. Only use a subset that should be completely safe to use.
This commit is contained in:
parent
d8be41f519
commit
08d088be83
1 changed files with 2 additions and 1 deletions
|
|
@ -261,7 +261,8 @@ endif()
|
|||
|
||||
add_definitions(-DTMS_BACKEND_${TMS_FORMFACTOR} -DTMS_BACKEND_${TMS_BACKEND})
|
||||
|
||||
set(COMMON_FLAGS "-ffast-math")
|
||||
# Use a safe subset of fast math flags
|
||||
set(COMMON_FLAGS "-fno-math-errno -fno-trapping-math -fno-signed-zeros")
|
||||
|
||||
set(COMMON_FLAGS_DEBUG "${COMMON_FLAGS} -O0 -ggdb -DDEBUG=1")
|
||||
set(COMMON_FLAGS_RELEASE "${COMMON_FLAGS} -DNDEBUG=1 -fomit-frame-pointer")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue