Skip to content

Commit

Permalink
Replace \ with / in prefix on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
nathaniel-daniel committed Nov 27, 2023
1 parent 2b0e2b1 commit 9ea97f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ impl Build {
// Change the install directory to happen inside of the build directory.
if host.contains("pc-windows-gnu") {
configure.arg(&format!("--prefix={}", sanitize_sh(&install_dir)));
} else if host.contains("pc-windows-msvc") {
configure.arg(&format!("--prefix={}", install_dir.to_str().unwrap().replace("\\", "/")));
} else {
configure.arg(&format!("--prefix={}", install_dir.display()));
}
Expand Down

0 comments on commit 9ea97f6

Please sign in to comment.