Skip to content

Commit 85827b2

Browse files
committed
<v8> Use remove_v8base_debug_symbols
When this gyp variable is enabled the debug symbols of v8_base library are not generated. This reduces the debug section size of the libQtWebEngineCore library significantly (~25% less). Change-Id: Iad71af0ada4cd3924d66e47294c51dc2b554dbf7 Reviewed-by: Andras Becsi <[email protected]>
1 parent 41a1a03 commit 85827b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

chromium/v8/tools/gyp/v8.gyp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
'icu_use_data_file_flag%': 0,
3131
'v8_code': 1,
3232
'v8_random_seed%': 314159265,
33+
'remove_v8base_debug_symbols%': 0,
3334
},
3435
'includes': ['../../build/toolchain.gypi', '../../build/features.gypi'],
3536
'targets': [
@@ -859,6 +860,9 @@
859860
'../../src/third_party/fdlibm/fdlibm.h',
860861
],
861862
'conditions': [
863+
['OS!="win" and remove_v8base_debug_symbols==1', {
864+
'cflags!': ['-g', '-gdwarf-4'],
865+
}],
862866
['want_separate_host_toolset==1', {
863867
'toolsets': ['host', 'target'],
864868
}, {

0 commit comments

Comments
 (0)