comparison third_party/emsdk/test/test_bazel_mac.sh @ 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
comparison
equal deleted inserted replaced
178:94705b5986b3 179:8d17f6e6e290
1 #!/usr/bin/env bash
2
3 echo "test bazel"
4
5 set -x
6 set -e
7
8 # Get the latest version number from emscripten-releases-tag.json.
9 VER=$(scripts/get_release_info.py emscripten-releases-tags.json latest)
10
11 # Based on the latest version number, get the commit hash for that version.
12 HASH=$(scripts/get_release_info.py emscripten-releases-tags.json hash ${VER})
13
14 FAILMSG="!!! scripts/update_bazel_workspace.py needs to be run !!!"
15
16 # Ensure the WORKSPACE file is up to date with the latest version.
17 grep ${VER} bazel/revisions.bzl || (echo ${FAILMSG} && false)
18 grep ${HASH} bazel/revisions.bzl || (echo ${FAILMSG} && false)
19 grep ${VER} bazel/MODULE.bazel || (echo ${FAILMSG} && false)
20
21 cd bazel
22 bazel build //hello-world:hello-world-wasm
23 bazel build //hello-world:hello-world-wasm-simd
24
25 cd test_external
26 bazel build //long_command_line:long_command_line_wasm
27 bazel build //:hello-world-wasm
28
29 cd ../test_secondary_lto_cache
30 bazel build //:hello-world-wasm
31