Skip to content

Commit

Permalink
[perf] Don't emit noalias for box when compiling rustc itself
Browse files Browse the repository at this point in the history
This compiles rustc without noalias on box to evaluate the performance
impact of such a change on a large scale project like rustc. Most
importantly, this does NOT change the emitting of noalias when compiling
crates other than rustc, to avoid perf impacts from LLVM having to
process less attributes like in #98017.
  • Loading branch information
Noratrieb committed Jul 20, 2022
1 parent a7468c6 commit fd92015
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bootstrap/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,7 @@ impl<'a> Builder<'a> {
cargo.args(s.split_whitespace());
}
rustflags.env("RUSTFLAGS_NOT_BOOTSTRAP");
rustflags.arg("-Zbox-noalias=no");
} else {
if let Ok(s) = env::var("CARGOFLAGS_BOOTSTRAP") {
cargo.args(s.split_whitespace());
Expand Down

0 comments on commit fd92015

Please sign in to comment.