mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-25 15:29:43 -05:00
chore: respect explicitly set RUSTY_V8_SRC_BINDING_PATH (#1588)
This commit is contained in:
parent
15b2ad2826
commit
b32f8e39d2
1 changed files with 5 additions and 0 deletions
5
build.rs
5
build.rs
|
@ -41,6 +41,7 @@ fn main() {
|
||||||
"OUT_DIR",
|
"OUT_DIR",
|
||||||
"RUSTY_V8_ARCHIVE",
|
"RUSTY_V8_ARCHIVE",
|
||||||
"RUSTY_V8_MIRROR",
|
"RUSTY_V8_MIRROR",
|
||||||
|
"RUSTY_V8_SRC_BINDING_PATH",
|
||||||
"SCCACHE",
|
"SCCACHE",
|
||||||
"V8_FORCE_DEBUG",
|
"V8_FORCE_DEBUG",
|
||||||
"V8_FROM_SOURCE",
|
"V8_FROM_SOURCE",
|
||||||
|
@ -704,6 +705,10 @@ fn print_link_flags() {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_prebuilt_src_binding_path() {
|
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 target = env::var("TARGET").unwrap();
|
||||||
let profile = prebuilt_profile();
|
let profile = prebuilt_profile();
|
||||||
let src_binding_path = get_dirs()
|
let src_binding_path = get_dirs()
|
||||||
|
|
Loading…
Reference in a new issue