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