forked from M-Labs/nac3
1
0
Fork 0

nac3artiq: do not use custom linker script when targeting host

This commit is contained in:
Sebastien Bourdeauducq 2021-10-31 23:51:50 +08:00
parent 8b73a123cc
commit 443b95d909
1 changed files with 3 additions and 1 deletions

View File

@ -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() {