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:
ROllerozxa 2024-06-24 22:14:05 +02:00
commit 08d088be83

View file

@ -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")