mirror of
https://github.com/denoland/rusty_v8.git
synced 2024-11-21 12:18:58 +00:00
deps: upgrade Ninja and GN (#1160)
Ninja and GN are upgraded to the version specified in V8's `DEPS` file as of V8 11.0.226.2. As part of this upgrade, native binaries for linux-arm64 and mac-arm64 were added to the repository, and some directories were renamed to make the overall naming scheme more consistent.
This commit is contained in:
parent
0e09f12eca
commit
da0825bff0
25
build.rs
25
build.rs
@ -248,25 +248,26 @@ fn maybe_install_sysroot(arch: &str) {
|
||||
}
|
||||
}
|
||||
|
||||
fn platform() -> &'static str {
|
||||
#[cfg(target_os = "windows")]
|
||||
{
|
||||
"win"
|
||||
}
|
||||
fn platform() -> String {
|
||||
#[cfg(target_os = "linux")]
|
||||
{
|
||||
"linux64"
|
||||
}
|
||||
let os = "linux";
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
"mac"
|
||||
}
|
||||
let os = "mac";
|
||||
#[cfg(target_os = "windows")]
|
||||
let os = "windows";
|
||||
|
||||
#[cfg(target_arch = "x86_64")]
|
||||
let arch = "amd64";
|
||||
#[cfg(target_arch = "aarch64")]
|
||||
let arch = "arm64";
|
||||
|
||||
format!("{os}-{arch}")
|
||||
}
|
||||
|
||||
fn download_ninja_gn_binaries() {
|
||||
let target_dir = build_dir();
|
||||
let bin_dir = target_dir
|
||||
.join("ninja_gn_binaries-20220517")
|
||||
.join("ninja_gn_binaries-20221218")
|
||||
.join(platform());
|
||||
let gn = bin_dir.join("gn");
|
||||
let ninja = bin_dir.join("ninja");
|
||||
|
@ -18,7 +18,7 @@ except ImportError: # For Py3 compatibility
|
||||
from urllib.error import HTTPError, URLError
|
||||
from urllib.request import urlopen
|
||||
|
||||
URL = "https://github.com/denoland/ninja_gn_binaries/archive/20220517.tar.gz"
|
||||
URL = "https://github.com/denoland/ninja_gn_binaries/archive/20221218.tar.gz"
|
||||
DIR = None
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user