Mercurial
comparison third_party/emsdk/bazel/hello-world/BUILD @ 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("@rules_cc//cc:defs.bzl", "cc_binary") | |
| 2 load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary") | |
| 3 | |
| 4 cc_binary( | |
| 5 name = "hello-world", | |
| 6 srcs = ["hello-world.cc"], | |
| 7 ) | |
| 8 | |
| 9 cc_binary( | |
| 10 name = "hello-world-simd", | |
| 11 srcs = ["hello-world-simd.cc"], | |
| 12 ) | |
| 13 | |
| 14 wasm_cc_binary( | |
| 15 name = "hello-world-wasm", | |
| 16 cc_target = ":hello-world", | |
| 17 ) | |
| 18 | |
| 19 wasm_cc_binary( | |
| 20 name = "hello-world-wasm-simd", | |
| 21 cc_target = ":hello-world-simd", | |
| 22 simd = True, | |
| 23 ) |