Skip to content

Commit

Permalink
feat: use .wasm artifact name extension (#185)
Browse files Browse the repository at this point in the history
I added support for the `.wasm` extension to bazel last year and I
figured it'd be a slightly nicity improvement when targetting wasm.
  • Loading branch information
zaucy authored Nov 28, 2024
1 parent aefb7a1 commit 8e68b72
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion toolchain/private/defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -220,5 +220,17 @@ def _target_wasm():
"@platforms//cpu:wasm32",
],
ld_zig_subcmd = "wasm-ld",
artifact_name_patterns = [],
# .wasm extension supported in bazel >= 6.4.0
artifact_name_patterns = [
{
"category_name": "dynamic_library",
"prefix": "",
"extension": ".wasm",
},
{
"category_name": "executable",
"prefix": "",
"extension": ".wasm",
},
],
)

0 comments on commit 8e68b72

Please sign in to comment.