diff options
| author | Michael Williamson <mike@zwobble.org> | 2025-03-09 22:01:19 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2025-03-09 22:01:19 +0000 |
| commit | e42206226a77fccc397381089a8becef3a4199e2 (patch) | |
| tree | dc1954646580efc52a0f924ed1f338f9b2f08b8e /src/main/java | |
| parent | 564a2a7f4feb6f53b5aeff38a73f30dc275d4437 (diff) | |
Extract Wasm executable extension into a constant
Diffstat (limited to 'src/main/java')
| -rw-r--r-- | src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java b/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java index 60e383ef..614bf1fe 100644 --- a/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java +++ b/src/main/java/org/shedlang/compiler/backends/wasm/WasmBackend.java @@ -34,6 +34,7 @@ import static org.shedlang.compiler.util.processes.ProcessRunner.runInheritIo; public class WasmBackend implements Backend { public static final WasmBackend WASM32 = new WasmBackend(WasmTarget.WASM32); public static final WasmBackend WASM64 = new WasmBackend(WasmTarget.WASM64); + public static final String EXECUTABLE_EXTENSION = ".wasm"; public static WasmBackend forTarget(WasmTarget target) { return new WasmBackend(target); @@ -116,7 +117,7 @@ public class WasmBackend implements Backend { targetDir ); - var outputBinPath = targetDir.topLevel(binName + ".wasm"); + var outputBinPath = targetDir.topLevel(binName + EXECUTABLE_EXTENSION); link( linkInputs, outputBinPath, |
