Skip to content

Commit

Permalink
Fix a rustflags test using a wrong buildfile name
Browse files Browse the repository at this point in the history
 The test seem to have always had the wrong buildfile `build.rs.rs`.

Signed-off-by: Mohammad AlSaleh <CE.Mohammad.AlSaleh@gmail.com>
  • Loading branch information
MoSal committed Nov 16, 2023
1 parent 80326ca commit 0bbabec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/rustflags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1658,7 +1658,7 @@ fn host_config_rustflags_with_target() {
// regression test for https://github.com/rust-lang/cargo/issues/10206
let p = project()
.file("src/lib.rs", "")
.file("build.rs.rs", "fn main() { assert!(cfg!(foo)); }")
.file("build.rs", "fn main() { assert!(cfg!(foo)); }")
.file(".cargo/config.toml", "target-applies-to-host = false")
.build();

Expand Down

0 comments on commit 0bbabec

Please sign in to comment.