Skip to content

Commit

Permalink
Unrolled build for rust-lang#129194
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#129194 - ChrisDenton:detect-src, r=Mark-Simulacrum

Fix bootstrap test `detect_src_and_out` on Windows

Fixes rust-lang#129188 by making sure it's properly testing the right path for the platform.
  • Loading branch information
rust-timer committed Aug 19, 2024
2 parents 5601d14 + 9a9cf2f commit 3ef460f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bootstrap/src/core/config/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ fn detect_src_and_out() {
test(parse(""), None);

{
let build_dir = if cfg!(windows) { Some("C:\\tmp") } else { Some("/tmp") };
test(parse("build.build-dir = \"/tmp\""), build_dir);
let build_dir = if cfg!(windows) { "C:\\tmp" } else { "/tmp" };
test(parse(&format!("build.build-dir = '{build_dir}'")), Some(build_dir));
}
}

Expand Down

0 comments on commit 3ef460f

Please sign in to comment.