From 0600ee8efa465f208173a1624e87b1c9b2043c1a Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 27 Mar 2022 18:25:14 +0800 Subject: [PATCH] nac3artiq: use correct lld invokation on Windows --- nac3artiq/src/lib.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 57e916521..f12dc81c4 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -867,7 +867,11 @@ impl Nac3 { ); } - if let Ok(linker_status) = Command::new("ld.lld").args(linker_args).status() { + #[cfg(not(windows))] + let lld_command = "ld.lld"; + #[cfg(windows)] + let lld_command = "ld.lld.exe"; + if let Ok(linker_status) = Command::new(lld_command).args(linker_args).status() { if !linker_status.success() { return Err(CompileError::new_err("failed to start linker")); }