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:
Bert Belder 2022-12-18 06:11:46 +01:00
parent 0e09f12eca
commit da0825bff0
2 changed files with 14 additions and 13 deletions

View File

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

View File

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