Commit: 932fe957144dc75d44bcb6efcb2ac7be08e95f26
Parent: 229ba1a5da5ae4bd0ea9c361a4b159a87ce2b2e8
Author: Randy Palamar
Date: Thu, 17 Jul 2025 06:32:43 -0600
build: replace -ffast-math with specifics
in particular -ffast-math enables -ffinite-math-only which means
that any floating point infinities in your code will cause
surrounding code to misbehave. infinity is useful as a default
value for some values hence its presence.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/build.c b/build.c
@@ -30,7 +30,7 @@
#define DEBUG_FLAGS "-O0", "-D_DEBUG", "-Wno-unused-function"
#define OPTIMIZED_FLAGS "-O3"
#define EXTRA_FLAGS "-Werror", "-Wextra", "-Wshadow", "-Wconversion", "-Wno-unused-parameter", \
- "-Wno-error=unused-function", "-ffast-math"
+ "-Wno-error=unused-function", "-funsafe-math-optimizations", "-fno-math-errno"
#endif
#define is_aarch64 ARCH_ARM64