Update examples collection
This commit is contained in:
parent
bd4072b2fa
commit
f54d586953
1 changed files with 22230 additions and 13 deletions
19
emsdk-cache/emsdk-main/bazel/test_secondary_lto_cache/BUILD
Normal file
19
emsdk-cache/emsdk-main/bazel/test_secondary_lto_cache/BUILD
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary")
|
||||
|
||||
cc_binary(
|
||||
name = "hello-world",
|
||||
srcs = ["hello-world.cc"],
|
||||
linkopts = [
|
||||
"-sAUTO_NATIVE_LIBRARIES=0",
|
||||
"-flto",
|
||||
],
|
||||
)
|
||||
|
||||
wasm_cc_binary(
|
||||
name = "hello-world-wasm",
|
||||
cc_target = ":hello-world",
|
||||
outputs = [
|
||||
"hello-world.js",
|
||||
"hello-world.wasm",
|
||||
],
|
||||
)
|
||||
Loading…
Reference in a new issue