Print Rust target name, not LLVM target name, for --print target-list

This commit is contained in:
Seo Sanghyeon 2016-08-08 19:22:57 +09:00
parent 6153bbbe38
commit dc7407c77a

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