Mercurial
comparison third_party/emsdk/bazel/emscripten_toolchain/default_config @ 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 import os | |
| 2 import platform | |
| 3 | |
| 4 ROOT_DIR = os.environ["ROOT_DIR"] | |
| 5 EMSCRIPTEN_ROOT = os.environ["EMSCRIPTEN"] | |
| 6 BINARYEN_ROOT = os.path.join(ROOT_DIR, os.environ["EM_BIN_PATH"]) | |
| 7 LLVM_ROOT = os.path.join(BINARYEN_ROOT, "bin") | |
| 8 NODE_JS = os.path.join(ROOT_DIR, os.environ["NODE_JS_PATH"]) | |
| 9 FROZEN_CACHE = True | |
| 10 | |
| 11 # This works around an issue with Bazel RBE where the symlinks in node_modules/.bin | |
| 12 # are uploaded as the linked files, which means the cli.js cannot load its | |
| 13 # dependencies from the expected locations. | |
| 14 # See https://github.com/emscripten-core/emscripten/pull/16640 for more | |
| 15 CLOSURE_COMPILER = [NODE_JS, os.path.join(EMSCRIPTEN_ROOT, "node_modules", | |
| 16 "google-closure-compiler", "cli.js")] |