From b36a2616007375bbb50c16482d7b5b93de70b35e Mon Sep 17 00:00:00 2001 From: Chinmay Garde Date: Fri, 20 Nov 2015 11:43:35 -0800 Subject: [PATCH] Strip executables on Mac and iOS --- engine/src/flutter/build/toolchain/mac/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/build/toolchain/mac/BUILD.gn b/engine/src/flutter/build/toolchain/mac/BUILD.gn index 10a77844b6..ea9cf45976 100644 --- a/engine/src/flutter/build/toolchain/mac/BUILD.gn +++ b/engine/src/flutter/build/toolchain/mac/BUILD.gn @@ -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 = [