From b21fb1837955e6385137184cac906245821b20e4 Mon Sep 17 00:00:00 2001 From: Jude Melton-Houghton Date: Mon, 3 Oct 2022 12:13:35 -0400 Subject: [PATCH] Disable -ffinite-math-only (#12832) --- src/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 54dad55c6..60876044e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -743,8 +743,8 @@ else() # Use a safe subset of flags to speed up math calculations: # - we don't need errno or math exceptions - # - we don't deal with Inf/NaN or signed zero - set(MATH_FLAGS "-fno-math-errno -fno-trapping-math -ffinite-math-only -fno-signed-zeros") + # - we don't deal with signed zero + set(MATH_FLAGS "-fno-math-errno -fno-trapping-math -fno-signed-zeros") # Enable SSE for floating point math on 32-bit x86 by default # reasoning see minetest issue #11810 and https://gcc.gnu.org/wiki/FloatingPointMath