Skip to content

Commit 920da48

Browse files
committed
fix(moonutil) *nix targets output executable files with .exe extension.
1 parent 468fefe commit 920da48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

crates/moonutil/src/common.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,16 @@ impl TargetBackend {
312312
Self::Wasm => "wasm",
313313
Self::WasmGC => "wasm",
314314
Self::Js => "js",
315+
316+
#[cfg(target_os = "windows")]
315317
Self::Native => "exe",
318+
#[cfg(target_os = "windows")]
316319
Self::LLVM => "exe",
320+
321+
#[cfg(not(target_os = "windows"))]
322+
Self::Native => "out",
323+
#[cfg(not(target_os = "windows"))]
324+
Self::LLVM => "out",
317325
}
318326
}
319327

0 commit comments

Comments
 (0)