mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
makepanda: Fix clang crash on macOS when compiling Objective-C++ code
This commit is contained in:
parent
c2635d2498
commit
987f2f036b
@ -1602,6 +1602,9 @@ def CompileCxx(obj,src,opts):
|
|||||||
# Needed by both Python, Panda, Eigen, all of which break aliasing rules.
|
# Needed by both Python, Panda, Eigen, all of which break aliasing rules.
|
||||||
cmd += " -fno-strict-aliasing"
|
cmd += " -fno-strict-aliasing"
|
||||||
|
|
||||||
|
# Certain clang versions crash when passing these math flags while
|
||||||
|
# compiling Objective-C++ code
|
||||||
|
if not src.endswith(".m") and not src.endswith(".mm"):
|
||||||
if optlevel >= 3:
|
if optlevel >= 3:
|
||||||
cmd += " -ffast-math -fno-stack-protector"
|
cmd += " -ffast-math -fno-stack-protector"
|
||||||
if optlevel == 3:
|
if optlevel == 3:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user