File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -186,8 +186,8 @@ possibly reducing compile time, but may produce slower code.
186186
187187This option takes an integer greater than 0.
188188
189- This option is ignored if [ incremental] ( #incremental ) is enabled, in which
190- case ` rustc ` uses an internal heuristic to split the crate .
189+ The default is 256 for [ incremental] ( #incremental ) builds, and 16 for
190+ non-incremental builds .
191191
192192[ `-C codegen-units` flag ] : ../../rustc/codegen-options/index.html#codegen-units
193193
@@ -217,7 +217,7 @@ overflow-checks = true
217217lto = false
218218panic = ' unwind'
219219incremental = true
220- codegen-units = 16 # Note: ignored because `incremental` is enabled.
220+ codegen-units = 256
221221rpath = false
222222```
223223
@@ -258,7 +258,7 @@ overflow-checks = true
258258lto = false
259259panic = ' unwind' # This setting is always ignored.
260260incremental = true
261- codegen-units = 16 # Note: ignored because `incremental` is enabled.
261+ codegen-units = 256
262262rpath = false
263263```
264264
You can’t perform that action at this time.
0 commit comments