Also found that symbol_level=1 is more preferable:

if (symbol_level == 0) {
    configs = [ ":no_symbols" ]
  } else if (symbol_level == 1) {
    configs = [ ":minimal_symbols" ]
  } else if (symbol_level == 2) {
    configs = [ ":symbols" ]
  } else {
    assert(false)
  }

With symbol_level=1, the size for libv8.so is only slightly higher than no 
symbols: 24910336

Thanks again!
On Thursday, December 27, 2018 at 4:39:19 PM UTC-8, Jane Chen wrote:
>
> Embedding v8 6.7 using gcc 4.8.5 on RedHat 7.
>
> Building v8 optimized build with gn and ninja with the following arguments:
>
> gn gen out.gn/x64.release --args='is_debug=false is_official_build=true 
> is_component_build=true is_cfi=false is_clang=false use_custom_libcxx=false 
> use_sysroot=false treat_warnings_as_errors=false'
> ...
> ninja -C out.gn/x64.release
>
> and found the output libv8.so under x64.release contains debug info. Is 
> there a way to make an optimized build without the debug info, so that 
> libv8.so is smaller?
>
> Thanks in advance!
>

-- 
-- 
v8-users mailing list
v8-users@googlegroups.com
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to