Browse Source

Merge pull request #95 from nipunn1313/create_dir

Move output directory creation out of parallel code
vs2017
Alex Crichton 8 years ago
committed by GitHub
parent
commit
3fc82be241
  1. 2
      src/lib.rs

2
src/lib.rs

@ -337,6 +337,7 @@ impl Config {
} else {
obj
};
fs::create_dir_all(&obj.parent().unwrap()).unwrap();
src_dst.push((file.to_path_buf(), obj.clone()));
objects.push(obj);
}
@ -393,7 +394,6 @@ impl Config {
(cmd, compiler.path.file_name().unwrap()
.to_string_lossy().into_owned())
};
fs::create_dir_all(&dst.parent().unwrap()).unwrap();
if msvc && is_asm {
cmd.arg("/Fo").arg(dst);
} else if msvc {

Loading…
Cancel
Save