提交 c3cdbaa1 编写于 作者: C Chinmay Garde

Strip executables on Mac and iOS

上级 f0b5d581
......@@ -183,7 +183,7 @@ template("mac_toolchain") {
tool("link") {
outfile = "{{root_out_dir}}/{{target_output_name}}{{output_extension}}"
rspfile = "$outfile.rsp"
command = "$ld $sysroot_flags $toolchain_flags {{ldflags}} -Xlinker -rpath -Xlinker @executable_path/Frameworks -o $outfile -Wl,-filelist,$rspfile {{solibs}} {{libs}}"
command = "$ld $sysroot_flags $toolchain_flags {{ldflags}} -Xlinker -rpath -Xlinker @executable_path/Frameworks -o $outfile.unstripped -Wl,-filelist,$rspfile {{solibs}} {{libs}}; strip $outfile.unstripped -o $outfile"
description = "LINK $outfile"
rspfile_content = "{{inputs_newline}}"
outputs = [
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册