From 37eae090e51117e430ad4824a93d68f30db362e9 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 6 Nov 2021 14:23:54 +0800 Subject: [PATCH] nac3artiq: fix linker inputs --- nac3artiq/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nac3artiq/src/lib.rs b/nac3artiq/src/lib.rs index b39369241..62dbd0a5f 100644 --- a/nac3artiq/src/lib.rs +++ b/nac3artiq/src/lib.rs @@ -470,7 +470,10 @@ impl Nac3 { if isa != Isa::Host { linker_args.push("-T".to_string() + self.working_directory.path().join("kernel.ld").to_str().unwrap()); } - linker_args.extend(thread_names.iter().map(|name| name.to_owned() + ".o")); + linker_args.extend(thread_names.iter().map(|name| { + let name_o = name.to_owned() + ".o"; + self.working_directory.path().join(name_o.as_str()).to_str().unwrap().to_string() + })); if let Ok(linker_status) = Command::new("ld.lld").args(linker_args).status() { if !linker_status.success() { return Err(exceptions::PyRuntimeError::new_err(