Skip to content

Commit

Permalink
Auto merge of #123469 - belovdv:remove-miri-jobserver-fixme, r=petroc…
Browse files Browse the repository at this point in the history
…henkov

remove miri jobserver workaround

This PR removes workaround, added in #113730, since jobserver is kept after [rust-lang/cargo#12776](rust-lang/cargo#12776)
  • Loading branch information
bors committed Apr 5, 2024
2 parents bdbd3d2 + b0216c7 commit 81633ad
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions cargo-miri/src/phases.rs
Original file line number Diff line number Diff line change
Expand Up @@ -519,13 +519,6 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
// Set missing env vars. We prefer build-time env vars over run-time ones; see
// <https://github.com/rust-lang/miri/issues/1661> for the kind of issue that fixes.
for (name, val) in info.env {
// `CARGO_MAKEFLAGS` contains information about how to reach the jobserver, but by the time
// the program is being run, that jobserver no longer exists (cargo only runs the jobserver
// for the build portion of `cargo run`/`cargo test`). Hence we shouldn't forward this.
// Also see <https://github.com/rust-lang/rust/pull/113730>.
if name == "CARGO_MAKEFLAGS" {
continue;
}
if let Some(old_val) = env::var_os(&name) {
if old_val == val {
// This one did not actually change, no need to re-set it.
Expand Down

0 comments on commit 81633ad

Please sign in to comment.