I am trying to cross compile V8 7.0.276.27 for android targeting arm64.

I have used the following arguments:

gn gen out/arm64.release --args='is_official_build=true is_debug=false 
symbol_level=0 v8_use_snapshot=true v8_use_external_startup_data=false 
target_cpu="arm64" v8_target_cpu="arm64" v8_enable_i18n_support=false 
target_os="android" v8_android_log_stdout=true'

and this command to build:

ninja -C out/arm64.release v8_base v8_libplatform v8_libbase v8_libsampler 
v8_snapshot v8_initializers v8_init inspector

Using those arguments, the generated object files contain "LLVM IR bitcode" 
and are not compiled to native arm64.

In V8 6.9.427.23 those same arguments were producing "ELF 64-bit LSB  
relocatable, ARM aarch64, version 1 (SYSV), not stripped" object files.

I have noticed that if I remove the "is_official_build=true" argument then 
the expected object files are generated.

So my question is what has changed between 6.9.427.23 and 7.0.276.27 and 
what would be the correct way to generate optimized native binaries.

-- 
-- 
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