浏览代码

Merge pull request #16196 from bruvzg/macos_strip

[macOS] Strip executable after separating debug symbols.
Rémi Verschelde 7 年之前
父节点
当前提交
20a52aa39d
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      platform/osx/SCsub

+ 1 - 0
platform/osx/SCsub

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