Skip to content

Commit

Permalink
[6.1.0] Allow .wasm cc executable and dynamic library extension (baze…
Browse files Browse the repository at this point in the history
…lbuild#17440)

* Add .wasm cc artifact executable extension

This allows creating a custom cc_toolchain that compiles to WebAssembly that outputs a wasm file with the standard extension, without needing to have a genrule that renames the file

Closes bazelbuild#16091.

PiperOrigin-RevId: 503921110
Change-Id: I3ed9e50a945d2e415e2ab34bd99ceea481c987f0

* Add .wasm cc dynamic library extension

Similar to bazelbuild#16091 except also allow the `.wasm` extension for dynamic libraries.

Closes bazelbuild#17374.

PiperOrigin-RevId: 507668339
Change-Id: Id85f98bb804e573e5f93a922b67baf75a22baf16

---------

Co-authored-by: Scott Bennett <[email protected]>
Co-authored-by: kshyanashree <[email protected]>
  • Loading branch information
3 people authored Feb 28, 2023
1 parent 5afbce5 commit d4105e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
public enum ArtifactCategory {
STATIC_LIBRARY("lib", ".a", ".lib"),
ALWAYSLINK_STATIC_LIBRARY("lib", ".lo", ".lo.lib"),
DYNAMIC_LIBRARY("lib", ".so", ".dylib", ".dll"),
EXECUTABLE("", "", ".exe"),
DYNAMIC_LIBRARY("lib", ".so", ".dylib", ".dll", ".wasm"),
EXECUTABLE("", "", ".exe", ".wasm"),
INTERFACE_LIBRARY("lib", ".ifso", ".tbd", ".if.lib", ".lib"),
PIC_FILE("", ".pic"),
INCLUDED_FILE_LIST("", ".d"),
Expand Down

0 comments on commit d4105e6

Please sign in to comment.