This commit is contained in:
Judah Caruso 2026-02-19 23:43:42 -07:00
parent e9ebc4457f
commit e9420fe8e4

4
do.ps1
View file

@ -227,7 +227,7 @@ switch ($command) {
Invoke-Expression $binary | Write-Host;
}
}
"run-wasm" {
{($_ -eq "run-wasm") -or ($_ -eq "rw")} {
if (-not (Test-Path (Join-Path $OUT_DIR "p2601.wasm"))) {
&"./do.ps1" build-cross wasm32-emscripten;
}
@ -252,7 +252,7 @@ switch ($command) {
Write-Host " build (b) compiles the program natively";
Write-Host " build-cross (bc) <target> cross-compiles the program for the target triple (ex. x86_64-windows-gnu)";
Write-Host " run (r) compiles and runs the native program";
Write-Host " run-wasm compiles and runs the wasm program";
Write-Host " run-wasm (rw) compiles and runs the wasm program";
Write-Host " clean (c) cleans up all build artifacts";
Write-Host " list-targets (lt) lists all cross-compliation targets";
return;