Skip to content

Commit de062a6

Browse files
scottbennett-makercopybara-github
authored andcommitted
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 #16091. PiperOrigin-RevId: 503921110 Change-Id: I3ed9e50a945d2e415e2ab34bd99ceea481c987f0
1 parent 35fa38b commit de062a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public enum ArtifactCategory {
2323
STATIC_LIBRARY("lib", ".a", ".lib"),
2424
ALWAYSLINK_STATIC_LIBRARY("lib", ".lo", ".lo.lib"),
2525
DYNAMIC_LIBRARY("lib", ".so", ".dylib", ".dll"),
26-
EXECUTABLE("", "", ".exe"),
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)