diff --git a/do.ps1 b/do.ps1 index 1322535..878cf25 100755 --- a/do.ps1 +++ b/do.ps1 @@ -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) 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;