Skip to content

Commit

Permalink
Auto merge of rust-lang#97044 - Urgau:check-cfg-fix-rustc-perf, r=Mar…
Browse files Browse the repository at this point in the history
…k-Simulacrum

Fix rustc-perf benchmarks

See rust-lang#96984 (comment) and rust-lang#96984 (comment)

cc `@ehuss` `@lqd`
  • Loading branch information
bors committed May 14, 2022
2 parents b36be12 + 9a4285c commit 70b3681
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1154,9 +1154,13 @@ impl<'a> Builder<'a> {
// backtrace, core_simd, std_float, ...), those dependencies have their own features
// but cargo isn't involved in the #[path] and so cannot pass the complete list of
// features, so for that reason we don't enable checking of features for std.
if mode != Mode::Std {
cargo.arg("-Zcheck-cfg-features");
}
//
// FIXME: Re-enable this after the beta bump as apperently rustc-perf doesn't use the
// beta cargo. See https://github.com/rust-lang/rust/pull/96984#issuecomment-1126678773
// #[cfg(not(bootstrap))]
// if mode != Mode::Std {
// cargo.arg("-Zcheck-cfg-features"); // -Zcheck-cfg=features after bump
// }

// Enable cfg checking of well known names/values
rustflags
Expand Down

0 comments on commit 70b3681

Please sign in to comment.