forked from M-Labs/nac3
nac3artiq: use correct lld invokation on Windows
This commit is contained in:
parent
bed33a7421
commit
0600ee8efa
@ -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"));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user