未验证 提交 bb25e5c0 编写于 作者: D Dan Field 提交者: GitHub

Strip bitcode from gen_snapshot (#11528)

上级 37a4af0c
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
# found in the LICENSE file. # found in the LICENSE file.
import argparse import argparse
import shutil import subprocess
import sys import sys
import os import os
...@@ -29,9 +29,10 @@ def main(): ...@@ -29,9 +29,10 @@ def main():
print 'Cannot find i386 (armv7) gen_snapshot at', armv7_gen_snapshot print 'Cannot find i386 (armv7) gen_snapshot at', armv7_gen_snapshot
return 1 return 1
shutil.copy(armv7_gen_snapshot, os.path.join(args.dst, 'gen_snapshot_armv7')) subprocess.check_call(['xcrun', 'bitcode_strip', '-r', armv7_gen_snapshot,
shutil.copy(arm64_gen_snapshot, os.path.join(args.dst, 'gen_snapshot_arm64')) '-o', os.path.join(args.dst, 'gen_snapshot_armv7')])
subprocess.check_call(['xcrun', 'bitcode_strip', '-r', arm64_gen_snapshot,
'-o', os.path.join(args.dst, 'gen_snapshot_arm64')])
if __name__ == '__main__': if __name__ == '__main__':
sys.exit(main()) sys.exit(main())
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册