denoland/rusty_v8

How to build rusty_v8 with old v8 version?

raefko opened this issue · 1 comments

Hello all!
I am trying to build rusty_v8 (https://github.com/denoland/rusty_v8) with an old version of v8.
I saw that there is an env var RUSTY_V8_ARCHIVE, so i tried to build v8 from the official repository as a static library.
I tried using this
target_os = "linux"
is_debug = false
target_cpu = "x64"
use_custom_libcxx = false
clang_use_chrome_plugins = false
is_component_build = false
is_clang = true
v8_static_library = true
v8_use_external_startup_data = false
v8_enable_test_features = false
v8_enable_i18n_support = false
treat_warnings_as_errors = false

I'm getting multiple .a and I don't know which one to use, but trying with libv8_libbase.a throw me this error
error: failed to build archive: 'v8_libbase/bits.o': No such file or directory

Can you please help me compile v8 as a static library to use it with rusty_v8?
Thanks!

You'd have to fork rusty_v8 and update various files required to build V8 with a specific version (all these directories like build/ and buildtools/ are tied to a specific version of V8) and then you'd have to update src/binding.cc and relevant Rust files to match what's in src/binding.cc. You might have a better luck trying to check out one of the older versions of rusty_v8 that uses the V8 version you need.