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