Commit e470d22
committed
Switch pipelined compilation from --rustc-quit-on-rmeta to -Zno-codegen
Replace the process wrapper's rmeta-interception approach (kill rustc
after metadata emission) with rustc's -Zno-codegen flag, which produces
a hollow rlib containing metadata and MIR but no object code. This is
the same approach used by Buck2.
Key changes:
- Metadata action uses `rustc -Zno-codegen --emit=link=<path>` to
produce a hollow rlib (_meta.rlib) instead of raw .rmeta files
- Remove --rustc-quit-on-rmeta flag, LineOutput::Terminate, and all
associated kill logic from the process wrapper
- Full action emits only --emit=link (no longer includes metadata)
- Set RUSTC_BOOTSTRAP=1 on both metadata and full actions for SVH
compatibility (required for the unstable -Zno-codegen flag)1 parent ee57fdc commit e470d22
File tree
17 files changed
+202
-275
lines changed- cargo
- extensions/prost/private
- rust
- private
- settings
- test
- process_wrapper
- unit
- metadata_output_groups
- pipelined_compilation
- rust_test_codegen_disambiguation
- util/process_wrapper
17 files changed
+202
-275
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
| 196 | + | |
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
| 282 | + | |
283 | 283 | | |
284 | 284 | | |
285 | 285 | | |
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
385 | 385 | | |
386 | 386 | | |
387 | 387 | | |
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
| 454 | + | |
455 | 455 | | |
456 | 456 | | |
457 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
| 904 | + | |
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| |||
1045 | 1045 | | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | | - | |
1049 | | - | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
1050 | 1053 | | |
1051 | 1054 | | |
1052 | 1055 | | |
| |||
1079 | 1082 | | |
1080 | 1083 | | |
1081 | 1084 | | |
1082 | | - | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
1083 | 1091 | | |
1084 | 1092 | | |
1085 | 1093 | | |
| |||
1377 | 1385 | | |
1378 | 1386 | | |
1379 | 1387 | | |
| 1388 | + | |
| 1389 | + | |
1380 | 1390 | | |
1381 | | - | |
1382 | | - | |
1383 | | - | |
1384 | | - | |
1385 | | - | |
1386 | 1391 | | |
1387 | 1392 | | |
1388 | | - | |
1389 | | - | |
1390 | | - | |
| 1393 | + | |
1391 | 1394 | | |
1392 | 1395 | | |
1393 | 1396 | | |
| |||
1435 | 1438 | | |
1436 | 1439 | | |
1437 | 1440 | | |
1438 | | - | |
| 1441 | + | |
1439 | 1442 | | |
1440 | 1443 | | |
1441 | 1444 | | |
| |||
1458 | 1461 | | |
1459 | 1462 | | |
1460 | 1463 | | |
| 1464 | + | |
| 1465 | + | |
| 1466 | + | |
| 1467 | + | |
| 1468 | + | |
| 1469 | + | |
1461 | 1470 | | |
1462 | 1471 | | |
1463 | 1472 | | |
| |||
1529 | 1538 | | |
1530 | 1539 | | |
1531 | 1540 | | |
1532 | | - | |
| 1541 | + | |
1533 | 1542 | | |
1534 | 1543 | | |
1535 | 1544 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
119 | 124 | | |
120 | 125 | | |
121 | 126 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
| 160 | + | |
| 161 | + | |
162 | 162 | | |
163 | 163 | | |
164 | 164 | | |
| |||
0 commit comments