meson: drop -ffast-math

After reading https://simonbyrne.github.io/notes/fastmath/ I think we
should drop -ffast-math. The JSON code actually looks for NaN, so the
fact it becomes unreliable kinda sucks.

Moreover, we don't do any number crunching. We use floating point fields
only sporadical for trivial math. Hence the optimization is entirely
unnecessary.
This commit is contained in:
Lennart Poettering
2021-11-15 22:24:33 +01:00
parent e6ace91eb7
commit 394ac84df9
-1
View File
@@ -409,7 +409,6 @@ possible_cc_flags = possible_common_cc_flags + [
'-Werror=missing-declarations',
'-Werror=missing-prototypes',
'-fdiagnostics-show-option',
'-ffast-math',
'-fno-common',
'-fno-strict-aliasing',
'-fstack-protector',