diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2018-07-06 21:29:20 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-06 21:29:20 -0600 |
| commit | cd7ddae695fca0aac2f10b5eeaa3af4612cddf23 (patch) | |
| tree | af0285a8e77cb2b4cd625aae50584836a471e9f0 /src | |
| parent | 4784883e52cd08c3527ff8999b9b83e881a6ac5c (diff) | |
| parent | b7047bb89fca909779d06ef8f3e74ff1ef39e8a8 (diff) | |
| download | rust-cd7ddae695fca0aac2f10b5eeaa3af4612cddf23.tar.gz rust-cd7ddae695fca0aac2f10b5eeaa3af4612cddf23.zip | |
Rollup merge of #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-nursery/stdsimd#437
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_codegen_llvm/llvm_util.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/librustc_codegen_llvm/llvm_util.rs b/src/librustc_codegen_llvm/llvm_util.rs index 357b639e788..87ee9ef5adb 100644 --- a/src/librustc_codegen_llvm/llvm_util.rs +++ b/src/librustc_codegen_llvm/llvm_util.rs @@ -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")), |
