Auto merge of #35489 - sanxiyn:target-list, r=alexcrichton
Print Rust target name, not LLVM target name, for `--print target-list` Rust target name and LLVM target name are usually the same, but not always. For example, `arm-unknown-linux-musleabi` Rust target uses `arm-unknown-linux-gnueabi` LLVM target. Fix #35481.
This commit is contained in:
commit
0ef24eed2f
@ -94,7 +94,7 @@ macro_rules! supported_targets {
|
||||
pub fn get_targets() -> Box<Iterator<Item=String>> {
|
||||
Box::new(TARGETS.iter().filter_map(|t| -> Option<String> {
|
||||
load_specific(t)
|
||||
.map(|t| t.llvm_target)
|
||||
.and(Ok(t.to_string()))
|
||||
.ok()
|
||||
}))
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user