Mercurial
comparison third_party/emsdk/bazel/emscripten_toolchain/BUILD.bazel @ 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 load("//:emscripten_deps.bzl", "emscripten_repo_name") | |
| 2 load("//:remote_emscripten_repository.bzl", "create_toolchains", "emscripten_toolchain_name") | |
| 3 load("@rules_cc//cc:defs.bzl", "cc_library") | |
| 4 load("@rules_python//python:py_binary.bzl", "py_binary") | |
| 5 | |
| 6 package(default_visibility = ["//visibility:public"]) | |
| 7 | |
| 8 # dlmalloc.bc is implicitly added by the emscripten toolchain | |
| 9 cc_library(name = "malloc") | |
| 10 | |
| 11 create_toolchains( | |
| 12 name = emscripten_toolchain_name("linux"), | |
| 13 repo_name = emscripten_repo_name("linux"), | |
| 14 exec_compatible_with = [ "@platforms//os:linux", "@platforms//cpu:x86_64"], | |
| 15 ) | |
| 16 | |
| 17 create_toolchains( | |
| 18 name = emscripten_toolchain_name("linux_arm64"), | |
| 19 repo_name = emscripten_repo_name("linux_arm64"), | |
| 20 exec_compatible_with = ["@platforms//os:linux", "@platforms//cpu:arm64"], | |
| 21 ) | |
| 22 | |
| 23 create_toolchains( | |
| 24 name = emscripten_toolchain_name("mac"), | |
| 25 repo_name = emscripten_repo_name("mac"), | |
| 26 exec_compatible_with = ["@platforms//os:macos", "@platforms//cpu:x86_64"], | |
| 27 ) | |
| 28 | |
| 29 create_toolchains( | |
| 30 name = emscripten_toolchain_name("mac_arm64"), | |
| 31 repo_name = emscripten_repo_name("mac_arm64"), | |
| 32 exec_compatible_with = ["@platforms//os:macos", "@platforms//cpu:arm64"], | |
| 33 ) | |
| 34 | |
| 35 create_toolchains( | |
| 36 name = emscripten_toolchain_name("win"), | |
| 37 repo_name = emscripten_repo_name("win"), | |
| 38 exec_compatible_with = ["@platforms//os:windows", "@platforms//cpu:x86_64"], | |
| 39 ) | |
| 40 | |
| 41 py_binary( | |
| 42 name = "wasm_binary", | |
| 43 srcs = ["wasm_binary.py"], | |
| 44 ) |