diff options
| author | Ben Kimock <kimockb@gmail.com> | 2023-03-11 21:11:04 -0500 |
|---|---|---|
| committer | Ben Kimock <kimockb@gmail.com> | 2023-03-18 14:29:13 -0400 |
| commit | 06e674313b0feb4287bc330bd8841af0acffc94a (patch) | |
| tree | 01128eeffa3695d29bd27907b9db6fa74afeaf81 /src/bootstrap | |
| parent | a98ddb6de1723a30777c68983c74bcb45ec52580 (diff) | |
| download | rust-06e674313b0feb4287bc330bd8841af0acffc94a.tar.gz rust-06e674313b0feb4287bc330bd8841af0acffc94a.zip | |
Always enable MIR inlining when building std
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/builder.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs index bb07ca1908e..287e00c644f 100644 --- a/src/bootstrap/builder.rs +++ b/src/bootstrap/builder.rs @@ -1933,6 +1933,12 @@ impl<'a> Builder<'a> { rustflags.arg("-Zvalidate-mir"); rustflags.arg(&format!("-Zmir-opt-level={}", mir_opt_level)); } + // Always enable inlining MIR when building the standard library. + // Without this flag, MIR inlining is disabled when incremental compilation is enabled. + // That causes some mir-opt tests which inline functions from the standard library to + // break when incremental compilation is enabled. So this overrides the "no inlining + // during incremental builds" heuristic for the standard library. + rustflags.arg("-Zinline-mir"); } Cargo { command: cargo, rustflags, rustdocflags, allow_features } |
