Files
emsdk/bazel/test_prebuilt_cache/BUILD
T

24 lines
470 B
Python

load("@emsdk//emscripten_toolchain:wasm_rules.bzl", "wasm_cc_binary")
load("@rules_cc//cc:defs.bzl", "cc_binary")
cc_binary(
name = "hello-world",
srcs = ["hello-world.cc"],
copts = [
"-flto=thin",
],
linkopts = [
"-sAUTO_NATIVE_LIBRARIES=0",
"-flto=thin",
],
)
wasm_cc_binary(
name = "hello-world-wasm",
cc_target = ":hello-world",
outputs = [
"hello-world.js",
"hello-world.wasm",
],
)