Skip to content

Commit 0ea8f8a

Browse files
authored
Provide "executable" in wasm_cc_binary's DefaultInfo. (#998)
This is needed to allow custom rules and/or transitions on top of wasm_cc_binary (e.g. to workaround #972). It's debatable whether .wasm is the correct executable target for non-standalone Wasm builds, but we don't have a way to differentiate those in wasm_cc_binary, and considering that this attribute isn't exported now, it shouldn't break anything.
1 parent 1b8cb73 commit 0ea8f8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bazel/emscripten_toolchain/wasm_cc_binary.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def _wasm_binary_impl(ctx):
8080
)
8181

8282
return DefaultInfo(
83+
executable = ctx.outputs.wasm,
8384
files = depset(outputs),
8485
# This is needed since rules like web_test usually have a data
8586
# dependency on this target.

0 commit comments

Comments
 (0)