From a765c32baef8da0185f4551945f27bd8ffa5f289 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 15 Oct 2018 13:32:22 +0200 Subject: [PATCH] makepanda: don't use -fno-rtti on macOS, it fails to compile It appears that (included by ) uses RTTI, so we can't enable this for now. --- makepanda/makepanda.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index dedd90b059..540d9e86cf 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -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':