Commit 33d477f
authored
Rollup merge of rust-lang#143681 - RalfJung:bootstrap-miri-rebuilds, r=Kobzol
bootstrap/miri: avoid rebuilds for test builds
When building Miri in its own repo, we always build with `--all-targets`:
https://github.com/rust-lang/rust/blob/a00961269107703772c4e8f071f0accbe0f1a7e5/src/tools/miri/miri-script/src/util.rs#L167-L174
This saves a bunch of time since some of Miri's dependencies get more features enabled by some of Miri's dev-dependencies, and they all get built twice otherwise if you do `cargo build && cargo test` (which is typically what you end up doing inside `./miri test` and also inside `./x test miri`).
This applies the same approach to bootstrap, drastically reducing the edit-compile cycle for Miri work here. :)1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
| 1143 | + | |
1143 | 1144 | | |
1144 | 1145 | | |
1145 | 1146 | | |
| |||
1180 | 1181 | | |
1181 | 1182 | | |
1182 | 1183 | | |
| 1184 | + | |
1183 | 1185 | | |
1184 | 1186 | | |
1185 | 1187 | | |
| |||
1219 | 1221 | | |
1220 | 1222 | | |
1221 | 1223 | | |
| 1224 | + | |
1222 | 1225 | | |
1223 | 1226 | | |
1224 | 1227 | | |
| |||
1227 | 1230 | | |
1228 | 1231 | | |
1229 | 1232 | | |
| 1233 | + | |
1230 | 1234 | | |
1231 | 1235 | | |
1232 | 1236 | | |
| |||
1243 | 1247 | | |
1244 | 1248 | | |
1245 | 1249 | | |
1246 | | - | |
| 1250 | + | |
1247 | 1251 | | |
1248 | 1252 | | |
1249 | 1253 | | |
| |||
1294 | 1298 | | |
1295 | 1299 | | |
1296 | 1300 | | |
1297 | | - | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
1298 | 1304 | | |
1299 | 1305 | | |
1300 | 1306 | | |
| |||
0 commit comments