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:
bors 2016-08-10 13:13:50 -07:00 committed by GitHub
commit 0ef24eed2f

View File

@ -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()
}))
}