Explorar el Código

link_partial: pass input files to linker arguments

Alexandre Janniaux hace 5 años
padre
commit
e6740f371c
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  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(())
 }