Compare commits
No commits in common. "c4221bff7f49408398eacf5db9818047884870ce" and "0474c59df889ee2cb4d0606258fdd623f201d586" have entirely different histories.
c4221bff7f
...
0474c59df8
1 changed files with 6 additions and 9 deletions
15
do.ps1
15
do.ps1
|
|
@ -59,19 +59,19 @@ $WASM_FLAGS = "-c -fno-sanitize=address -fno-sanitize=undefined -isystem " +
|
||||||
|
|
||||||
# try vendoring zig
|
# try vendoring zig
|
||||||
if (-not (Test-Path $ZIG)) {
|
if (-not (Test-Path $ZIG)) {
|
||||||
$ext = "";
|
$zig_ext = "";
|
||||||
if ($IsWindows) {
|
if ($IsWindows) {
|
||||||
$ext = ".zip";
|
$zig_ext = ".zip";
|
||||||
} else {
|
} else {
|
||||||
$ext = ".tar.xz";
|
$zig_ext = ".tar.xz";
|
||||||
}
|
}
|
||||||
|
|
||||||
$zig_url = "https://ziglang.org/download/$ZIG_VERSION/$ZIG_SLUG$ext";
|
$zig_url = "https://ziglang.org/download/$ZIG_VERSION/$ZIG_SLUG$ZIG_EXT";
|
||||||
Write-Host ":: Downloading Zig $ZIG_VERSION ($HOST_OS/$HOST_ARCH)";
|
Write-Host ":: Downloading Zig $ZIG_VERSION ($HOST_OS/$HOST_ARCH)";
|
||||||
Write-Host $zig_url;
|
Write-Host $zig_url;
|
||||||
|
|
||||||
if ($IsWindows) {
|
if ($IsWindows) {
|
||||||
$tmp = Join-Path $DEPS_DIR "zig-compiler$ext";
|
$tmp = Join-Path $DEPS_DIR "zig-compiler$zig_ext";
|
||||||
Invoke-WebRequest -Uri $zig_url -OutFile $tmp -UseBasicParsing
|
Invoke-WebRequest -Uri $zig_url -OutFile $tmp -UseBasicParsing
|
||||||
Expand-Archive -Path $tmp -DestinationPath $DEPS_DIR -Force
|
Expand-Archive -Path $tmp -DestinationPath $DEPS_DIR -Force
|
||||||
Remove-Item $tmp
|
Remove-Item $tmp
|
||||||
|
|
@ -82,10 +82,9 @@ if (-not (Test-Path $ZIG)) {
|
||||||
|
|
||||||
# try vendoring emsdk
|
# try vendoring emsdk
|
||||||
if (-not (Test-Path $EMSDK_DIR)) {
|
if (-not (Test-Path $EMSDK_DIR)) {
|
||||||
Write-Host ":: Cloning emsdk";
|
|
||||||
git clone $EMSDK_REPO $EMSDK_DIR
|
git clone $EMSDK_REPO $EMSDK_DIR
|
||||||
|
|
||||||
Push-Location $EMSDK_DIR
|
Set-Location $EMSDK_DIR
|
||||||
|
|
||||||
if ($IsWindows) {
|
if ($IsWindows) {
|
||||||
&"./emsdk.bat" install latest
|
&"./emsdk.bat" install latest
|
||||||
|
|
@ -94,8 +93,6 @@ if (-not (Test-Path $EMSDK_DIR)) {
|
||||||
&"./emsdk" install latest
|
&"./emsdk" install latest
|
||||||
&"./emsdk" activate latest
|
&"./emsdk" activate latest
|
||||||
}
|
}
|
||||||
|
|
||||||
Pop-Location
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ensure the out directory exists
|
# ensure the out directory exists
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue