Index: build/config/mac/BUILD.gn |
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn |
index d49db4383625bb254a07fcca49377c13ce8f2b55..074606c55998368360de6d6142ebbfb33ea15363 100644 |
--- a/build/config/mac/BUILD.gn |
+++ b/build/config/mac/BUILD.gn |
@@ -96,8 +96,8 @@ config("mac_executable_flags") { |
ldflags = [ "-Wl,-pie" ] # Position independent. |
} |
-# The ldflags referenced below are handled by |
-# //build/toolchain/mac/linker_driver.py. |
+# The ldflags referenced below are handled by //build/toolchain/mac/linker_driver.py. |
Mark Mentovai
2016/07/15 19:24:17
This was wrapped before, why not now?
Robert Sesek
2016/07/15 20:50:22
Don't know what happened, but fixed.
|
+ |
# Remove this config if a target wishes to change the arguments passed to the |
# strip command during linking. This config by default strips all symbols |
# from a binary, but some targets may wish to specify a saves file to preserve |
@@ -107,3 +107,10 @@ config("strip_all") { |
ldflags = [ "-Wcrl,strip,-x,-S" ] |
} |
} |
+ |
+# This config will keep unstripped copies of the linker output. |
+config("save_unstripped_output") { |
+ if (save_unstripped_output) { |
+ ldflags = [ "-Wcrl,unstripped," + rebase_path(root_out_dir) ] |
+ } |
+} |