Index: build/config/mac/BUILD.gn |
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn |
index d49db4383625bb254a07fcca49377c13ce8f2b55..f800b5a991774c456fb361d60db3a67db675d972 100644 |
--- a/build/config/mac/BUILD.gn |
+++ b/build/config/mac/BUILD.gn |
@@ -48,6 +48,10 @@ config("compiler") { |
cflags_objc = cflags_c |
ldflags = common_mac_flags |
+ |
+ if (save_unstripped_output) { |
+ ldflags += [ "-Wcrl,unstripped," + rebase_path(root_out_dir) ] |
+ } |
} |
# This is included by reference in the //build/config/compiler:runtime_library |