diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-02-10 16:09:38 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-23 13:31:33 +0200 |
commit | 17d9bd55362b06a897617750b80676ca53e75a24 (patch) | |
tree | fd239e68dafd90cb1925b7002cc925a9cfb537f8 | |
parent | 1ffcf65b3068bf89394550daad5233feea574714 (diff) | |
download | qtwebengine-chromium-17d9bd55362b06a897617750b80676ca53e75a24.tar.gz |
Add remove_v8base_debug_symbols to GN
Re-introduce the option that makes it possible for us to disable debug-
symbols in v8base.
Change-Id: I24617e157f94f2b469326db04a8b528e2938da27
Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/v8/BUILD.gn | 9 |
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") { |