Skip to content

Commit

Permalink
Rollup merge of #52120 - japaric:mclass, r=alexcrichton
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Mark-Simulacrum authored Jul 7, 2018
2 parents 4784883 + b7047bb commit cd7ddae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_codegen_llvm/llvm_util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ unsafe fn configure_llvm(sess: &Session) {
// array, leading to crashes.

const ARM_WHITELIST: &[(&str, Option<&str>)] = &[
("mclass", Some("arm_target_feature")),
("neon", Some("arm_target_feature")),
("v7", Some("arm_target_feature")),
("vfp2", Some("arm_target_feature")),
Expand Down

0 comments on commit cd7ddae

Please sign in to comment.