diff options
Diffstat (limited to 'platform/osx/SCsub')
-rw-r--r-- | platform/osx/SCsub | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/osx/SCsub b/platform/osx/SCsub index cb88bc470a..13ce14f040 100644 --- a/platform/osx/SCsub +++ b/platform/osx/SCsub @@ -4,7 +4,11 @@ import os Import('env') def make_debug(target, source, env): - os.system('dsymutil %s -o %s.dSYM' % (target[0], target[0])) + if (env["macports_clang"]): + mpprefix = os.environ.get("MACPORTS_PREFIX", "/opt/local") + os.system(mpprefix + '/libexec/llvm-5.0/bin/llvm-dsymutil %s -o %s.dSYM' % (target[0], target[0])) + else: + os.system('dsymutil %s -o %s.dSYM' % (target[0], target[0])) files = [ 'crash_handler_osx.mm', |