Mercurial
comparison third_party/emsdk/bazel/test_secondary_lto_cache/BUILD @ 186:8cf4ec5e2191 hg-web
Fixed merge conflict.
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 23 Jan 2026 22:38:59 -0800 |
| parents | 8d17f6e6e290 |
| children |
comparison
equal
deleted
inserted
replaced
| 176:fed99fc04e12 | 186:8cf4ec5e2191 |
|---|---|
| 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 ) |