Mercurial
diff third_party/emsdk/test/test_bazel.ps1 @ 179:8d17f6e6e290
[ThirdParty] Added emsdk bazel rules that can be supported by bazel 9.0.0
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Thu, 22 Jan 2026 21:23:17 -0800 |
| parents | |
| children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/third_party/emsdk/test/test_bazel.ps1 Thu Jan 22 21:23:17 2026 -0800 @@ -0,0 +1,30 @@ +$ErrorActionPreference = 'Stop' + +Set-Location bazel + +bazel build //hello-world:hello-world-wasm +if (-not $?) { Exit $LastExitCode } + +bazel build //hello-world:hello-world-wasm-simd +if (-not $?) { Exit $LastExitCode } + +Set-Location test_external + +bazel build //:hello-world-wasm +if (-not $?) { Exit $LastExitCode } + +bazel build //long_command_line:long_command_line_wasm +if (-not $?) { Exit $LastExitCode } + +bazel build //:hello-embind-wasm --compilation_mode dbg # debug +if (-not $?) { Exit $LastExitCode } + +# Test use of the closure compiler +bazel build //:hello-embind-wasm --compilation_mode opt # release +if (-not $?) { Exit $LastExitCode } + +Set-Location ..\test_secondary_lto_cache + +bazel build //:hello-world-wasm +if (-not $?) { Exit $LastExitCode } +