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

Unified Diff: build/config/mac/symbols.gni

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
Index: build/config/mac/symbols.gni
diff --git a/build/config/mac/symbols.gni b/build/config/mac/symbols.gni
new file mode 100644
index 0000000000000000000000000000000000000000..4e717e8304eb55799d313543e7b6936e762ef199
--- /dev/null
+++ b/build/config/mac/symbols.gni
@@ -0,0 +1,24 @@
+# Copyright 2016 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/chrome_build.gni")
+
+# This file declares arguments and configs that control whether dSYM debug
+# info is produced and whether build products are stripped.
+
+declare_args() {
+ # Produce dSYM files for targets that are configured to do so. By default,
+ # symbol information is retained in the object files because dsymutil is
+ # very slow. Targets interested in having a dSYM file produced can use the
+ # //build/config/mac:dsym config.
+ enable_dsyms = is_official_build
+
+ # Strip symbols from targets that are configured to do so. This should be
+ # used in conjuction with enable_dsyms to ensure that debug information
+ # remains available. The linker driver will produce any dSYMs before
+ # invoking strip. Targets that do not want to keep symbols can use the
+ # //build/config/mac:strip_all config. If targets wish to use a saves file,
+ # they should add the ldflags themselves, conditional on this argument.
+ enable_stripping = is_official_build
+}

Powered by Google App Engine
This is Rietveld 408576698