Create target/ if it doesn't exist yet
This commit is contained in:
parent
0926702269
commit
e1a551e8f2
2
build.rs
2
build.rs
@ -8,7 +8,7 @@ fn main() {
|
||||
// Ensure target/perf-libs/ exists. It's been observed that
|
||||
// a cargo:rerun-if-changed= directive with a non-existent
|
||||
// directory triggers a rebuild on every |cargo build| invocation
|
||||
fs::create_dir("target/perf-libs").unwrap_or_else(|err| {
|
||||
fs::create_dir_all("target/perf-libs").unwrap_or_else(|err| {
|
||||
if err.kind() != std::io::ErrorKind::AlreadyExists {
|
||||
panic!("Unable to create target/perf-libs: {:?}", err);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user