Chromium Code Reviews| 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. |