Skip to content

Commit

Permalink
miri: do not forward RUSTFLAGS to deps build
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jan 4, 2024
1 parent 38847ae commit 5aa15b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tools/miri/tests/compiletest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ fn test_config(target: &str, path: &str, mode: Mode, with_dependencies: bool) ->
"run".into(), // There is no `cargo miri build` so we just use `cargo miri run`.
]);
config.dependency_builder.args = builder_args.into_iter().map(Into::into).collect();
// Reset `RUSTFLAGS` to work around <https://github.com/rust-lang/rust/pull/119574#issuecomment-1876878344>.
config.dependency_builder.envs.push(("RUSTFLAGS".into(), None));
}
config
}
Expand Down

0 comments on commit 5aa15b6

Please sign in to comment.