Skip to content

Commit

Permalink
Align wasm output directory with G3 (PolymerLabs#4060)
Browse files Browse the repository at this point in the history
  • Loading branch information
cromwellian authored Nov 14, 2019
1 parent cf4b73d commit 95d1194
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion third_party/bazel_rules/rules_kotlin/kotlin/native/wasm.bzl
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# Alias wasm split transition rule unless G3 Kotlin Native synced with GH rules
def wasm_kt_binary(name, kt_target):
native.alias(name = name, actual = kt_target, visibility = ["//visibility:public"])
native.genrule(
name = name,
srcs = [kt_target + ".wasm", kt_target + ".wasm.js"],
cmd = "cp $(location %s.wasm) $(@D)/%s.wasm; cp $(location %s.wasm.js) $(@D)/%s.wasm.js" % (kt_target, name, kt_target, name),
outs = ["%s.wasm" % name, "%s.wasm.js" % name],
tools = [kt_target],
visibility = ["//visibility:public"],
)

0 comments on commit 95d1194

Please sign in to comment.