about summary refs log tree commit diff
path: root/compiler/rustc_llvm/build.rs
diff options
context:
space:
mode:
authorManuel Drehwald <git@manuel.drehwald.info>2025-02-10 01:35:22 -0500
committerManuel Drehwald <git@manuel.drehwald.info>2025-02-10 01:35:22 -0500
commit1221cff55149d2dbbf8761345799ef06f8099b97 (patch)
treeb21703aa4527bad47c9cff195845ef7d0b04d3a4 /compiler/rustc_llvm/build.rs
parent21d096184e3c7e05646ee756a2ff6a99e90aff77 (diff)
downloadrust-1221cff55149d2dbbf8761345799ef06f8099b97.tar.gz
rust-1221cff55149d2dbbf8761345799ef06f8099b97.zip
move second opt run to lto phase and cleanup code
Diffstat (limited to 'compiler/rustc_llvm/build.rs')
-rw-r--r--compiler/rustc_llvm/build.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
index d9d28299413..48806888b43 100644
--- a/compiler/rustc_llvm/build.rs
+++ b/compiler/rustc_llvm/build.rs
@@ -193,6 +193,10 @@ fn main() {
         cfg.define(&flag, None);
     }
 
+    if tracked_env_var_os("LLVM_ENZYME").is_some() {
+        cfg.define("ENZYME", None);
+    }
+
     if tracked_env_var_os("LLVM_RUSTLLVM").is_some() {
         cfg.define("LLVM_RUSTLLVM", None);
     }