Skip to content

Commit

Permalink
Auto merge of rust-lang#119017 - saethlin:mir-only-rlibs, r=<try>
Browse files Browse the repository at this point in the history
[perf experiment] (crudely) implement MIR-only rlibs

I realized that `-Zcross-crate-inline-threshold=always` is now basically MIR-only rlibs. So if nothing else, this is an easy way to study the perf implications of such a design.

Pondering this because it would be neat to codegen MIR for the standard library differently based on build flags passed by an end user.

r? `@ghost`
  • Loading branch information
bors committed Dec 16, 2023
2 parents e223c41 + d9e0f19 commit f4568e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/bootstrap/src/core/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1371,6 +1371,9 @@ impl<'a> Builder<'a> {
rustflags.arg("--cfg=bootstrap");
}
}
if stage != 0 && mode == Mode::Std {
rustflags.arg("-Zcross-crate-inline-threshold=yes");
}

let use_new_symbol_mangling = match self.config.rust_new_symbol_mangling {
Some(setting) => {
Expand Down

0 comments on commit f4568e9

Please sign in to comment.