Index: build/config/compiler/compiler.gni |
diff --git a/build/config/compiler/compiler.gni b/build/config/compiler/compiler.gni |
index fa097036c15e54a17835d6adfd992bada8760198..d061e4827e77cd0edb6538d62f381819f24be1de 100644 |
--- a/build/config/compiler/compiler.gni |
+++ b/build/config/compiler/compiler.gni |
@@ -77,6 +77,11 @@ 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_android && !is_component_build && !is_clang && |
+ !(android_64bit_target_cpu && !build_apk_secondary_abi)) { |
Torne
2016/11/07 12:56:43
Can you add the build_apk_secondary_abi condition
agrieve
2016/11/07 19:44:00
Done.
|
+ # Reduce symbol level when it will cause invalid elf files to be created |
+ # (due to file size). https://crbug.com/648948. |
+ symbol_level = 1 |
} else if (is_win && use_goma && !is_clang) { |
# goma doesn't support PDB files, so we disable symbols during goma |
# compilation because otherwise the redundant debug information generated |
@@ -102,4 +107,5 @@ assert(ignore_elf32_limitations || !is_android || android_64bit_target_cpu || |
is_component_build || symbol_level < 2 || is_clang, |
"Android 32-bit non-component, non-clang builds cannot have " + |
"symbol_level=2 due to 4GiB file size limit, see " + |
- "https://crbug.com/648948") |
+ "https://crbug.com/648948. If you really want to try this out, " + |
+ "set ignore_elf32_limitations=true.") |