From 443b95d909d97ef9cf164524673f13df9d32e7ac Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sun, 31 Oct 2021 23:51:50 +0800 Subject: [PATCH] nac3artiq: do not use custom linker script when targeting host --- nac3artiq/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index 000fbb0a7..bbd0d906c 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -455,11 +455,13 @@ impl Nac3 { let mut linker_args = vec![ "-shared".to_string(), "--eh-frame-hdr".to_string(), - "-Tkernel.ld".to_string(), "-x".to_string(), "-o".to_string(), "module.elf".to_string(), ]; + if isa != Isa::Host { + linker_args.push("-Tkernel.ld".to_string()); + } linker_args.extend(thread_names.iter().map(|name| name.to_owned() + ".o")); if let Ok(linker_status) = Command::new("ld.lld").args(linker_args).status() { if !linker_status.success() {