summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chromium/v8/BUILD.gn9
1 files changed, 9 insertions, 0 deletions
diff --git a/chromium/v8/BUILD.gn b/chromium/v8/BUILD.gn
index 4b48f7d6874..d11045fd5da 100644
--- a/chromium/v8/BUILD.gn
+++ b/chromium/v8/BUILD.gn
@@ -122,6 +122,10 @@ declare_args() {
# Similar to the ARM hard float ABI but on MIPS.
v8_use_mips_abi_hardfloat = true
+ # If true, doesn't compile debug symbols into v8base reducing the
+ # size of the binary and increasing the speed of gdb.
+ remove_v8base_debug_symbols = false
+
# Controls the threshold for on-heap/off-heap Typed Arrays.
v8_typed_array_max_size_in_heap = 64
@@ -2627,6 +2631,11 @@ v8_source_set("v8_base") {
sources += [ "$target_gen_dir/debug-support.cc" ]
deps += [ ":postmortem-metadata" ]
}
+
+ if (remove_v8base_debug_symbols) {
+ v8_remove_configs += [ "//build/config/compiler:default_symbols" ]
+ v8_add_configs += [ "//build/config/compiler:no_symbols" ]
+ }
}
v8_component("v8_libbase") {