Skip to content

Commit ef8f096

Browse files
committed
Try something random
1 parent 0e2ebff commit ef8f096

File tree

1 file changed

+3
-1
lines changed
  • src/tools/run-make-support/src

1 file changed

+3
-1
lines changed

src/tools/run-make-support/src/lib.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ fn run_common(bin_name: &str) -> (Command, Output) {
111111

112112
if target.contains("windows") {
113113
let mut path = std::env::var("PATH").unwrap_or(String::new());
114-
path.push(':');
114+
if !path.is_empty() {
115+
path.push(':');
116+
}
115117
path.push_str(&std::env::var("TARGET_RPATH_DIR").unwrap());
116118
cmd.env("PATH", &path);
117119
}

0 commit comments

Comments
 (0)