don't -fno-trapping-math

causes gcc to optimize floatVal!=(i32)floatVal to floatVal!=round(floatVal), which is technically valid as that conversion is UB on overflow, but we want it to work anyways
This commit is contained in:
dzaima 2024-02-08 15:25:30 +02:00
parent 7c1cc22f1e
commit b5f9424209

View File

@ -302,7 +302,7 @@ po ← { # parsed options
cc,
"-std=gnu11",
"-Wall", "-Wno-unused-function",
"-fms-extensions", "-ffp-contract=off", "-fno-trapping-math", "-fno-math-errno", "-fvisibility=hidden", "-fno-strict-aliasing",
"-fms-extensions", "-ffp-contract=off", "-fno-math-errno", "-fvisibility=hidden", "-fno-strict-aliasing",
"-DBYTECODE_DIR="•file.Name bytecodeDir,
"-DSINGELI="•Repr singeli,
"-DFFI="•Repr 2×ffi