Skip to content

Commit

Permalink
Auto merge of #35489 - sanxiyn:target-list, r=alexcrichton
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Aug 10, 2016
2 parents 1f2ae38 + dc7407c commit 0ef24ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_back/target/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}
Expand Down

0 comments on commit 0ef24ee

Please sign in to comment.