0
0
Fork 0
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:
Bert Belder 2020-04-05 04:51:47 +02:00
parent 858335663d
commit fb08c1bf22
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461
2 changed files with 6 additions and 8 deletions

1
.gn
View file

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

View file

@ -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();