We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a98ddb6 commit 06e6743Copy full SHA for 06e6743
src/bootstrap/builder.rs
@@ -1933,6 +1933,12 @@ impl<'a> Builder<'a> {
1933
rustflags.arg("-Zvalidate-mir");
1934
rustflags.arg(&format!("-Zmir-opt-level={}", mir_opt_level));
1935
}
1936
+ // Always enable inlining MIR when building the standard library.
1937
+ // Without this flag, MIR inlining is disabled when incremental compilation is enabled.
1938
+ // That causes some mir-opt tests which inline functions from the standard library to
1939
+ // break when incremental compilation is enabled. So this overrides the "no inlining
1940
+ // during incremental builds" heuristic for the standard library.
1941
+ rustflags.arg("-Zinline-mir");
1942
1943
1944
Cargo { command: cargo, rustflags, rustdocflags, allow_features }
0 commit comments