Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit e1a551e

Browse files
committed
Create target/ if it doesn't exist yet
1 parent 0926702 commit e1a551e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fn main() {
88
// Ensure target/perf-libs/ exists. It's been observed that
99
// a cargo:rerun-if-changed= directive with a non-existent
1010
// directory triggers a rebuild on every |cargo build| invocation
11-
fs::create_dir("target/perf-libs").unwrap_or_else(|err| {
11+
fs::create_dir_all("target/perf-libs").unwrap_or_else(|err| {
1212
if err.kind() != std::io::ErrorKind::AlreadyExists {
1313
panic!("Unable to create target/perf-libs: {:?}", err);
1414
}

0 commit comments

Comments
 (0)