From 8f87e8095e3f1ebb73ec738ddd26885fdbb75e37 Mon Sep 17 00:00:00 2001 From: Manuel Drehwald Date: Fri, 7 Feb 2025 01:58:48 -0500 Subject: get tests to work without -Z/-C flags --- src/bootstrap/src/core/build_steps/compile.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bootstrap') diff --git a/src/bootstrap/src/core/build_steps/compile.rs b/src/bootstrap/src/core/build_steps/compile.rs index f447d186a52..4e360e94fd6 100644 --- a/src/bootstrap/src/core/build_steps/compile.rs +++ b/src/bootstrap/src/core/build_steps/compile.rs @@ -1052,9 +1052,9 @@ pub fn rustc_cargo( // We temporarily disable linking here as part of some refactoring. // This way, people can manually use -Z llvm-plugins and -C passes=enzyme for now. // In a follow-up PR, we will re-enable linking here and load the pass for them. - //if builder.config.llvm_enzyme { - // cargo.rustflag("-l").rustflag("Enzyme-19"); - //} + if builder.config.llvm_enzyme { + cargo.rustflag("-l").rustflag("Enzyme-19"); + } // Building with protected visibility reduces the number of dynamic relocations needed, giving // us a faster startup time. However GNU ld < 2.40 will error if we try to link a shared object -- cgit 1.4.1-3-g733a5