Skip to content

Commit 52e9b60

Browse files
committed
wasm_bindgen: allow target name with directory
1 parent 2a0698f commit 52e9b60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wasm_bindgen/private/wasm_bindgen.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def rust_wasm_bindgen_action(ctx, toolchain, wasm_file, target_output, bindgen_f
6464
args = ctx.actions.args()
6565
args.add("--target", target_output)
6666
args.add("--out-dir", bindgen_wasm_module.dirname)
67-
args.add("--out-name", ctx.label.name)
67+
args.add("--out-name", ctx.label.name.split("/").pop())
6868
args.add_all(bindgen_flags)
6969
args.add(input_file)
7070

0 commit comments

Comments
 (0)