Browse Source

Work when input files are absolute paths

vs2017
Alex Crichton 9 years ago
parent
commit
b8e2400883
  1. 5
      src/lib.rs

5
src/lib.rs

@ -327,6 +327,11 @@ impl Config {
let mut objects = Vec::new();
for file in self.files.iter() {
let obj = dst.join(file).with_extension("o");
let obj = if !obj.starts_with(&dst) {
dst.join(obj.file_name().unwrap())
} else {
obj
};
self.compile_object(file, &obj);
objects.push(obj);
}

Loading…
Cancel
Save