File tree 3 files changed +3
-3
lines changed
compiler/rustc_session/src
src/doc/rustc/src/codegen-options
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1229,7 +1229,7 @@ impl Session {
1229
1229
// codegen units in order to reduce the "collateral damage" small
1230
1230
// changes cause.
1231
1231
if self . opts . incremental . is_some ( ) {
1232
- return 256 ;
1232
+ return 64 ;
1233
1233
}
1234
1234
1235
1235
// Why is 16 codegen units the default all the time?
Original file line number Diff line number Diff line change @@ -434,7 +434,7 @@ changelog-seen = 2
434
434
# compiler.
435
435
#
436
436
# Uses the rustc defaults: https://doc.rust-lang.org/rustc/codegen-options/index.html#codegen-units
437
- # codegen-units = if incremental { 256 } else { 16 }
437
+ # codegen-units = if incremental { 64 } else { 16 }
438
438
439
439
# Sets the number of codegen units to build the standard library with,
440
440
# regardless of what the codegen-unit setting for the rest of the compiler is.
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ also produce slower code. Setting this to 1 may improve the performance of
40
40
generated code, but may be slower to compile.
41
41
42
42
The default value, if not specified, is 16 for non-incremental builds. For
43
- incremental builds the default is 256 which allows caching to be more granular.
43
+ incremental builds the default is 64 which allows caching to be more granular.
44
44
45
45
## control-flow-guard
46
46
You can’t perform that action at this time.
0 commit comments