Browse Source

link_partial: pass input files to linker arguments

Alexandre Janniaux 5 years ago
parent
commit
e6740f371c
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/main.rs

+ 4 - 1
src/main.rs

@@ -57,7 +57,10 @@ fn link_partial(inputs: Vec<PathBuf>, output: PathBuf)
         // Enable partial linking
         .arg("-r")
         .arg("-o")
-        .arg(output);
+        .arg(output)
+        .args(&inputs)
+        .output()
+        .unwrap();
 
     Ok(())
 }