Browse Source

Workaround for Apple compiler bug causing Eigen compile error

rdb 10 years ago
parent
commit
546bb22421
1 changed files with 4 additions and 0 deletions
  1. 4 0
      makepanda/makepanda.py

+ 4 - 0
makepanda/makepanda.py

@@ -1223,6 +1223,10 @@ def CompileCxx(obj,src,opts):
             else:
                 cmd += " -fno-exceptions"
 
+                if src.endswith(".mm"):
+                    # Work around Apple compiler bug.
+                    cmd += " -U__EXCEPTIONS"
+
             if 'RTTI' not in opts:
                 # We always disable RTTI on Android for memory usage reasons.
                 if optlevel >= 4 or GetTarget() == "android":