mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-12-23 15:50:11 -05:00
Use 'use_sysroot=false' by default, override only for ARM64 builds (#342)
This commit is contained in:
parent
858335663d
commit
fb08c1bf22
2 changed files with 6 additions and 8 deletions
1
.gn
1
.gn
|
@ -18,6 +18,7 @@ secondary_source = "//v8/"
|
|||
|
||||
default_args = {
|
||||
linux_use_bundled_binutils = false
|
||||
use_sysroot = false
|
||||
|
||||
use_dummy_lastchange = true
|
||||
treat_warnings_as_errors = true
|
||||
|
|
13
build.rs
13
build.rs
|
@ -88,14 +88,11 @@ fn build_v8() {
|
|||
}
|
||||
}
|
||||
|
||||
match env::var("CARGO_CFG_TARGET_ARCH").unwrap().as_str() {
|
||||
"aarch64" => {
|
||||
gn_args.push("target_cpu=\"arm64\"".to_string());
|
||||
maybe_install_sysroot("arm64");
|
||||
maybe_install_sysroot("amd64");
|
||||
}
|
||||
"x86_64" => gn_args.push("use_sysroot=false".to_string()),
|
||||
_ => unimplemented!(),
|
||||
if env::var("TARGET").unwrap() == "aarch64-unknown-linux-gnu" {
|
||||
gn_args.push("target_cpu=arm64".to_string());
|
||||
gn_args.push("use_sysroot=true".to_string());
|
||||
maybe_install_sysroot("arm64");
|
||||
maybe_install_sysroot("amd64");
|
||||
};
|
||||
|
||||
let gn_root = env::var("CARGO_MANIFEST_DIR").unwrap();
|
||||
|
|
Loading…
Reference in a new issue