Skip to content

Commit f4568e9

Browse files
committed
Auto merge of rust-lang#119017 - saethlin:mir-only-rlibs, r=<try>
[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`
2 parents e223c41 + d9e0f19 commit f4568e9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/src/core/builder.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1371,6 +1371,9 @@ impl<'a> Builder<'a> {
13711371
rustflags.arg("--cfg=bootstrap");
13721372
}
13731373
}
1374+
if stage != 0 && mode == Mode::Std {
1375+
rustflags.arg("-Zcross-crate-inline-threshold=yes");
1376+
}
13741377

13751378
let use_new_symbol_mangling = match self.config.rust_new_symbol_mangling {
13761379
Some(setting) => {

0 commit comments

Comments
 (0)