Skip to content

Commit cd7ddae

Browse files
authoredJul 7, 2018
Rollup merge of rust-lang#52120 - japaric:mclass, r=alexcrichton
ARM: expose the "mclass" target feature This let us differentiate, in conditional compilation context, between ARM Cortex-M targets, like the `thumbv*` targets, and other ARM targets, like the ARM Cortex-A Linux targets. r? @alexcrichton cc @gnzlbg cc rust-lang/stdarch#437
2 parents 4784883 + b7047bb commit cd7ddae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/librustc_codegen_llvm/llvm_util.rs

+1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ unsafe fn configure_llvm(sess: &Session) {
8484
// array, leading to crashes.
8585

8686
const ARM_WHITELIST: &[(&str, Option<&str>)] = &[
87+
("mclass", Some("arm_target_feature")),
8788
("neon", Some("arm_target_feature")),
8889
("v7", Some("arm_target_feature")),
8990
("vfp2", Some("arm_target_feature")),

0 commit comments

Comments
 (0)
Please sign in to comment.