Skip to content

Commit 4ceeec0

Browse files
authored
Rollup merge of rust-lang#54557 - michaelwoerister:dont-auto-share-generics-for-incr-comp, r=alexcrichton
incr.comp.: Don't automatically enable -Zshare-generics for incr. comp. builds. So far the compiler would automatically enable sharing of monomorphizations for incremental builds. That was OK because without (Thin)LTO this could have very little impact on the runtime performance of the generated code. However, since rust-lang#53673, ThinLTO and incr. comp. can be combined, so the trade-off is not as clear anymore. This PR removes the automatic tie between the two options. Whether monomorphizations are shared between crates or not now _only_ depends on the optimization level. r? @alexcrichton
2 parents bd217b6 + 8fc7b5d commit 4ceeec0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc/session/config.rs

-1
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,6 @@ impl Options {
646646
match self.debugging_opts.share_generics {
647647
Some(setting) => setting,
648648
None => {
649-
self.incremental.is_some() ||
650649
match self.optimize {
651650
OptLevel::No |
652651
OptLevel::Less |

0 commit comments

Comments
 (0)