From c7a503a8eaa760499cde00aba86146e8e1ed95ee Mon Sep 17 00:00:00 2001 From: Scott Bennett Date: Mon, 23 Jan 2023 01:50:50 -0800 Subject: [PATCH] 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 --- .../google/devtools/build/lib/rules/cpp/ArtifactCategory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/ArtifactCategory.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/ArtifactCategory.java index 1a2416c7875545..ac5788372ad0f1 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/ArtifactCategory.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/ArtifactCategory.java @@ -23,7 +23,7 @@ public enum ArtifactCategory { STATIC_LIBRARY("lib", ".a", ".lib"), ALWAYSLINK_STATIC_LIBRARY("lib", ".lo", ".lo.lib"), DYNAMIC_LIBRARY("lib", ".so", ".dylib", ".dll"), - EXECUTABLE("", "", ".exe"), + EXECUTABLE("", "", ".exe", ".wasm"), INTERFACE_LIBRARY("lib", ".ifso", ".tbd", ".if.lib", ".lib"), PIC_FILE("", ".pic"), INCLUDED_FILE_LIST("", ".d"),