Skip to content

Commit d4105e6

Browse files
zaucyScott BennettShreeM01
authored
[6.1.0] Allow .wasm cc executable and dynamic library extension (bazelbuild#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]>
1 parent 5afbce5 commit d4105e6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/google/devtools/build/lib/rules/cpp/ArtifactCategory.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
public enum ArtifactCategory {
2323
STATIC_LIBRARY("lib", ".a", ".lib"),
2424
ALWAYSLINK_STATIC_LIBRARY("lib", ".lo", ".lo.lib"),
25-
DYNAMIC_LIBRARY("lib", ".so", ".dylib", ".dll"),
26-
EXECUTABLE("", "", ".exe"),
25+
DYNAMIC_LIBRARY("lib", ".so", ".dylib", ".dll", ".wasm"),
26+
EXECUTABLE("", "", ".exe", ".wasm"),
2727
INTERFACE_LIBRARY("lib", ".ifso", ".tbd", ".if.lib", ".lib"),
2828
PIC_FILE("", ".pic"),
2929
INCLUDED_FILE_LIST("", ".d"),

0 commit comments

Comments
 (0)