Skip to content

Commit

Permalink
Try something random
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Feb 29, 2024
1 parent 0e2ebff commit ef8f096
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/run-make-support/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ fn run_common(bin_name: &str) -> (Command, Output) {

if target.contains("windows") {
let mut path = std::env::var("PATH").unwrap_or(String::new());
path.push(':');
if !path.is_empty() {
path.push(':');
}
path.push_str(&std::env::var("TARGET_RPATH_DIR").unwrap());
cmd.env("PATH", &path);
}
Expand Down

0 comments on commit ef8f096

Please sign in to comment.