Skip to content

Commit

Permalink
Print Rust target name, not LLVM target name, for --print target-list
Browse files Browse the repository at this point in the history
  • Loading branch information
sanxiyn committed Aug 8, 2016
1 parent 6153bbb commit dc7407c
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 dc7407c

Please sign in to comment.