0
0
Fork 0
mirror of https://github.com/denoland/rusty_v8.git synced 2024-11-21 15:04:33 -05:00

chore: respect explicitly set RUSTY_V8_SRC_BINDING_PATH (#1588)

This commit is contained in:
cions 2024-08-26 13:52:39 +09:00 committed by GitHub
parent 15b2ad2826
commit b32f8e39d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,6 +41,7 @@ fn main() {
"OUT_DIR",
"RUSTY_V8_ARCHIVE",
"RUSTY_V8_MIRROR",
"RUSTY_V8_SRC_BINDING_PATH",
"SCCACHE",
"V8_FORCE_DEBUG",
"V8_FROM_SOURCE",
@ -704,6 +705,10 @@ fn print_link_flags() {
}
fn print_prebuilt_src_binding_path() {
if let Ok(binding) = env::var("RUSTY_V8_SRC_BINDING_PATH") {
println!("cargo:rustc-env=RUSTY_V8_SRC_BINDING_PATH={}", binding);
return;
}
let target = env::var("TARGET").unwrap();
let profile = prebuilt_profile();
let src_binding_path = get_dirs()