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:
rdb 2018-10-15 13:32:22 +02:00
parent 02a72d4273
commit a765c32bae

View File

@ -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':