Browse Source

makepanda: Fix build crash on macOS (again)

rdb 2 years ago
parent
commit
1b779f7dfb
1 changed files with 3 additions and 3 deletions
  1. 3 3
      makepanda/makepanda.py

+ 3 - 3
makepanda/makepanda.py

@@ -1498,9 +1498,9 @@ def CompileCxx(obj,src,opts):
                 # Fast math is nice, but we'd like to see NaN in dev builds.
                 cmd += " -fno-finite-math-only"
 
-        # Make sure this is off to avoid GCC/Eigen bug (see GitHub #228)
-        if GetTarget() != "emscripten":
-            cmd += " -fno-unsafe-math-optimizations"
+            # Make sure this is off to avoid GCC/Eigen bug (see GitHub #228)
+            if GetTarget() != "emscripten":
+                cmd += " -fno-unsafe-math-optimizations"
 
         if (optlevel==1):
             if GetTarget() == "emscripten":