mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
makepanda: don't use -fno-rtti on macOS, it fails to compile
It appears that <tr1/functional> (included by <tr1/tuple>) uses RTTI, so we can't enable this for now.
This commit is contained in:
parent
02a72d4273
commit
a765c32bae
@ -1332,9 +1332,10 @@ def CompileCxx(obj,src,opts):
|
||||
# Work around Apple compiler bug.
|
||||
cmd += " -U__EXCEPTIONS"
|
||||
|
||||
if 'RTTI' not in opts:
|
||||
target = GetTarget()
|
||||
if 'RTTI' not in opts and target != "darwin":
|
||||
# We always disable RTTI on Android for memory usage reasons.
|
||||
if optlevel >= 4 or GetTarget() == "android":
|
||||
if optlevel >= 4 or target == "android":
|
||||
cmd += " -fno-rtti"
|
||||
|
||||
if ('SSE2' in opts or not PkgSkip("SSE2")) and not arch.startswith("arm") and arch != 'aarch64':
|
||||
|
Loading…
x
Reference in New Issue
Block a user