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

Unified Diff: build/config/compiler/compiler.gni

Issue 2215433002: Rework default GN symbol handling for win goma builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo Created 4 years, 4 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
« build/config/compiler/BUILD.gn ('K') | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/compiler/compiler.gni
diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni
index 8a3552b68e5f11545af80542b1ffb561e1483f8b..46db08fefb6d81dc4582f61aac6585da8a723bbc 100644
--- a/build/config/compiler/compiler.gni
+++ b/build/config/compiler/compiler.gni
@@ -82,6 +82,12 @@ if (symbol_level == -1) {
# With instrumentation enabled, debug info puts libchrome.so over 4gb, which
# causes the linker to produce an invalid ELF. http://crbug.com/574476
symbol_level = 0
+ } else if (is_win && use_goma) {
+ # goma doesn't support PDB files, so we disable symbols during goma
+ # compilation because otherwise the redundant debug information
Nico 2016/08/03 23:42:16 Don't we want this for non win too?
Dirk Pranke 2016/08/03 23:54:36 I'm not sure what you're asking. goma + full symb
+ # (repeated in every .obj file) makes linker memory consumption and
+ # link times unsustainable (crbug.com/630074).
+ symbol_level = 1
} else if (is_win && is_clang && !using_sanitizer) {
# TODO(thakis): Remove this again once building with clang/win and
# debug info doesn't make link.exe run for hours.
« build/config/compiler/BUILD.gn ('K') | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698