Merge pull request #16196 from bruvzg/macos_strip

[macOS] Strip executable after separating debug symbols.
This commit is contained in:
Rémi Verschelde 2018-01-30 16:23:02 +01:00 committed by GitHub
commit 20a52aa39d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@ def make_debug(target, source, env):
os.system(mpprefix + '/libexec/llvm-' + mpclangver + '/bin/llvm-dsymutil %s -o %s.dSYM' % (target[0], target[0])) os.system(mpprefix + '/libexec/llvm-' + mpclangver + '/bin/llvm-dsymutil %s -o %s.dSYM' % (target[0], target[0]))
else: else:
os.system('dsymutil %s -o %s.dSYM' % (target[0], target[0])) os.system('dsymutil %s -o %s.dSYM' % (target[0], target[0]))
os.system('strip -u -r %s' % (target[0]))
files = [ files = [
'crash_handler_osx.mm', 'crash_handler_osx.mm',