From dc7407c77a5a21ebb1aa2229e65554df256601d9 Mon Sep 17 00:00:00 2001 From: Seo Sanghyeon Date: Mon, 8 Aug 2016 19:22:57 +0900 Subject: [PATCH] Print Rust target name, not LLVM target name, for `--print target-list` --- src/librustc_back/target/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_back/target/mod.rs b/src/librustc_back/target/mod.rs index 3d24fd8ab67e4..18686e3f1d648 100644 --- a/src/librustc_back/target/mod.rs +++ b/src/librustc_back/target/mod.rs @@ -94,7 +94,7 @@ macro_rules! supported_targets { pub fn get_targets() -> Box> { Box::new(TARGETS.iter().filter_map(|t| -> Option { load_specific(t) - .map(|t| t.llvm_target) + .and(Ok(t.to_string())) .ok() })) }