Commit graph

9 commits

Author SHA1 Message Date
Weihang Lo db3b5801d7
Update tests to reflect -Zmultitarget stabilization 2022-07-17 11:02:01 +01:00
Scott Schafer c239e407e7 add a reason to masquerade_as_nightly_cargo so it is searchable 2022-07-15 21:32:23 -05:00
Weihang Lo c18275b1aa
Guard that array value of build.target should be in nightly 2022-03-31 07:24:01 +08:00
Weihang Lo 3c8ba9a9e0
test: fix to error message for multitarget 2022-03-29 14:25:12 +08:00
Weihang Lo 40e13609e7
Remove unnecessary nightly masquerade 2022-03-29 14:25:12 +08:00
Weihang Lo 20d96f3d94
Tests for setting multitarget in config 2022-03-12 01:53:59 +08:00
Matthias Krüger 1b7fa21f39 fix clippy warnings
fixes these clippy warnings:

map_collect_result_unit
needless_borrow
needless_return
into_iter_on_ref
manual_flatten
match_like_matches_macro
bool_comparison
2021-04-02 12:30:36 +02:00
Matthias Krüger 6694fdb677 clippy fixes 2020-05-01 01:16:30 +02:00
Alex Crichton 3fd28143de Support multiple --target flags on the CLI
This commit refactors the internals of Cargo to no longer have a
singular `--target` flag (and singular `requested_target` kind throught)
but to instead have a list. The semantics of multiple `--target` flags
is to build the selected targets for each of the input `--target` flag
inputs.

For now this is gated behind `-Zmultitarget` as an unstable features,
since I'm not entirely sure this is the interface we want. In general
it'd be great if we had a way to simply specify `Unit` structures of
what to build on the CLI, but we're in general very far away from that,
so I figured that this is probably sufficient at least for testing for
now.

cc #8156
2020-04-28 15:16:47 -07:00