Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1268)

Unified Diff: build/config/mac/BUILD.gn

Issue 1999513002: [Mac/GN] Implement dSYM generation and stripping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/config/mac/symbols.gni » ('j') | build/config/mac/symbols.gni » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/mac/BUILD.gn
diff --git a/build/config/mac/BUILD.gn b/build/config/mac/BUILD.gn
index 56e101cee713f3350170e5aeb007afe882bab157..c40886450da4a885fb91441a98cf095ee419b5d3 100644
--- a/build/config/mac/BUILD.gn
+++ b/build/config/mac/BUILD.gn
@@ -4,6 +4,7 @@
import("//build/config/sysroot.gni")
import("//build/config/mac/mac_sdk.gni")
+import("//build/config/mac/symbols.gni")
# This is included by reference in the //build/config/compiler config that
# is applied to all targets. It is here to separate out the logic.
@@ -86,3 +87,17 @@ config("mac_executable_flags") {
# Remove this when targeting >=10.7 since it is the default in that config.
ldflags = [ "-Wl,-pie" ] # Position independent.
}
+
+# The ldflags referenced below are handled by
+# //build/toolchain/mac/linker_driver.py.
+config("dsym") {
+ if (enable_dsyms) {
+ ldflags = [ "-Wcrl,dsym," + rebase_path(root_out_dir) ]
+ }
+}
+
+config("strip_all") {
+ if (enable_stripping) {
+ ldflags = [ "-Wcrl,strip,-x,-S" ]
+ }
+}
« no previous file with comments | « no previous file | build/config/mac/symbols.gni » ('j') | build/config/mac/symbols.gni » ('J')

Powered by Google App Engine
This is Rietveld 408576698