-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking issues for the -Zmultitarget
feature
#8176
Comments
How is this supposed to interact with the (currently single) target specification in |
I think we'd probably want to implement support for |
SGTM. |
Just saw that the referenced PR is closed. Are there any pending steps before closing this issue? |
I'm also curious about potential next steps on this issue, as we're trying to streamline the Android development experience. |
I have a [unstable]
multitarget = true
[build]
target = ["nightly", "nightly-i686-unknown-linux-gnu"] but getting an error Does anybody know a workaround? |
It may be the time to push it to stable. #10766 tries to stabilize it. Need some inputs from others. @rfcbot fcp merge |
Team member @weihanglo has proposed to merge this. The next step is review by the rest of the tagged team members: No concerns currently listed. Once a majority of reviewers approve (and at most 2 approvals are outstanding), this will enter its final comment period. If you spot a major issue that hasn't been raised at any point in this process, please speak up! See this document for info about what commands tagged team members can give me. |
🔔 This is now entering its final comment period, as per the review above. 🔔 |
One note I wanted to point out is that It is also not supported by the unstable artifact-dependencies and per-package-target feature (in the sense that they only allow selecting a single target). Also not a blocker, and also can be added at any time in the future. Just trying to note that this has a ripple effect across other features. |
Rustdoc marks features as being only active for certain targets, and |
cargo install might be wanted to build for any platform with an emulator, but yes you probably don't need multitarget in that case, a project probably only supports that one platform. |
Yea, However, for
That is, equivalent to running It would be interesting if rustdoc could union multiple target cfgs within the same documentation (without needing to do |
The final comment period, with a disposition to merge, as per the review above, is now complete. As the automated representative of the governance process, I would like to thank the author for their work and everyone else who contributed. This will be merged soon. |
9424: INT: generalize MatchToIfLetIntention to arbitrary arm count, take two r=vlad20012 a=Kobzol This PR is another attempt of implementing #7435. I learned that `if` expressions must have an `else` block if their type is anything other than `()`. So now the code always generates an `else` branch if it wasn't already generated by other means for match expressions that don't have unit type. Fixes: #7409 changelog: The intention to convert a match expression to a series of if let statements is now offered in more situations. 9958: IDE: add implementations Code Vision hint r=vlad20012 a=Kobzol The `handleClick` implementation is copied from `ImplsNavigationGutterIconRenderer::navigateToItems`. It should probably be placed into some unified location, but I'm not sure where does it belong. Relevant issue: #9427 changelog: Add support for showing implementations (inheritors) Code Vision. Note, these hints are available starting with 2022.3 and are currently disabled by default. You can turn it on via `Registry... | org.rust.code.vision.implementation`. 10685: #10125: Support multiple build targets in .cargo/config.toml r=vlad20012 a=mryall-mawson changelog: support multiple build.target values in .cargo/config.toml This is a fix for #10125, where the `cargo metadata` execution fails when multiple build targets are specified in `.cargo/config.toml`. Multiple build targets in config.toml were stabilized in Rust 1.64.0, as part of rust-lang/cargo#8176. As described in [my comment on the issue](#10125 (comment)), I have changed `buildTarget: String?` into `buildTargets: List<String>` in the `CargoConfig`, as returned by `Cargo.getConfig()`, and used in various places which calls that function. Instead of being `null`, `buildTargets` is an empty list if build.target is not specified, which is still correctly handled (defaulted to the host triple) by the calling code. As a result, `Cargo.fetchMetadata()` now passes `--filter-platform` multiple times to the `cargo metadata` call, rather than an empty string, which will correctly filter the dependencies for multiple target platforms, fixing the implementation originally added in #7185. Tests have been added and updated to exercise this functionality. This is my first time working on this project, so please feel free to adjust whatever is needed to take this forward. Co-authored-by: Jakub Beránek <[email protected]> Co-authored-by: Matt Ryall <[email protected]>
This is intended to be a tracking issue for
-Zmultitarget
being implemented in #8167. This feature allows passing the--target
flag multiple times to Cargo to build code simultaneously for multiple targets. This was originally requested in #8156 and #3913.Currently the semantics of
-Zmultitarget
is that it simply allows passing--target
multiple times (2 or more) to Cargo. Cargo recognizes this as doing what it was already doing, only now for multiple targets instead of just a single target. Internally Cargo's unit graph should still have all the edges drawn correctly and whatnot.The text was updated successfully, but these errors were encountered: