Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #12743 - paulmenage:fix-rustc-print-target, r=weihanglo
Use full target spec for `cargo rustc --print --target` `cargo::ops::cargo_compile::print()` was using the shortname for the `--target` flag to rustc, but should be using the full target spec; otherwise a JSON-specified target (e.g. `--target /path/to/some-custom-target.json`) will cause a rustc error such as `error: Error loading target specification: Could not find specification for target "some-custom-target". Run rustc --print target-list for a list of built-in targets`
- Loading branch information