diff options
| author | Jana Dönszelmann <jonathan@donsz.nl> | 2025-09-17 20:29:36 +0200 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-17 20:29:36 +0200 | 
| commit | 9303a924f446a83909795ab8cac3efa239380477 (patch) | |
| tree | 6e5f28ec5cdc574e34afaf8e7b2a438252438cb1 /compiler/rustc_codegen_llvm/src/llvm | |
| parent | 1c1d5c71e0ab458ba3d3ae215dfa79f8666070c3 (diff) | |
| parent | 1991779bd4a0a8d8905b6644b06aa317dde353ac (diff) | |
| download | rust-9303a924f446a83909795ab8cac3efa239380477.tar.gz rust-9303a924f446a83909795ab8cac3efa239380477.zip | |
Rollup merge of #146598 - bjorn3:feature_llvm_enzyme, r=davidtwco
Make llvm_enzyme a regular cargo feature This makes it clearer that it is set by the build system rather than by the rustc that compiles the current rustc. It also avoids bootstrap needing to pass `--check-cfg llvm_enzyme` to rustc.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs index 56d756e52cc..695435eb6da 100644 --- a/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs +++ b/compiler/rustc_codegen_llvm/src/llvm/enzyme_ffi.rs @@ -59,10 +59,10 @@ pub(crate) enum LLVMRustVerifierFailureAction { LLVMReturnStatusAction = 2, } -#[cfg(llvm_enzyme)] +#[cfg(feature = "llvm_enzyme")] pub(crate) use self::Enzyme_AD::*; -#[cfg(llvm_enzyme)] +#[cfg(feature = "llvm_enzyme")] pub(crate) mod Enzyme_AD { use std::ffi::{CString, c_char}; @@ -134,10 +134,10 @@ pub(crate) mod Enzyme_AD { } } -#[cfg(not(llvm_enzyme))] +#[cfg(not(feature = "llvm_enzyme"))] pub(crate) use self::Fallback_AD::*; -#[cfg(not(llvm_enzyme))] +#[cfg(not(feature = "llvm_enzyme"))] pub(crate) mod Fallback_AD { #![allow(unused_variables)] | 
