Commit dc88875
committed
Allow installing targets & components for CI toolchains
With this change, crater is able to successfully install alternative
targets for use with the `+target` modifier syntax.
While this works fine for crater, this doesn't work in the more general
case as the API allows you to call it multiple times with the assumption
being that doing so leaves the existing targets and components around
and only installs the newly requested target/component.
`rustup-toolchain-install-master` doesn't support this and instead
replaces the previous state of the toolchain with the newly requested
one.
As a result, calling `add_target("foo"); add_target("bar");` leaves only
the `bar` target installed.
Since installing CI toolchains is gated behind the unstable feature
flag, I think this is ok for now.1 parent b354448 commit dc88875
1 file changed
+39
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
318 | | - | |
319 | | - | |
| 318 | + | |
| 319 | + | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
328 | 356 | | |
329 | 357 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
| 358 | + | |
| 359 | + | |
335 | 360 | | |
336 | 361 | | |
337 | 362 | | |
| |||
344 | 369 | | |
345 | 370 | | |
346 | 371 | | |
347 | | - | |
348 | | - | |
| 372 | + | |
349 | 373 | | |
350 | 374 | | |
351 | 375 | | |
| |||
0 commit comments