Skip to content

Commit 51223a1

Browse files
committed
fix enzyme library used for build
1 parent e41d64c commit 51223a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bootstrap/src/core/build_steps/llvm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ impl Step for Enzyme {
894894
.profile(profile)
895895
.env("LLVM_CONFIG_REAL", &llvm_config)
896896
.define("LLVM_ENABLE_ASSERTIONS", "ON")
897-
.define("ENZYME_EXTERNAL_SHARED_LIB", "OFF")
897+
.define("ENZYME_EXTERNAL_SHARED_LIB", "ON")
898898
.define("LLVM_DIR", &llvm_cmake_dir);
899899

900900
cfg.build();

src/bootstrap/src/core/builder.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1419,7 +1419,7 @@ impl<'a> Builder<'a> {
14191419
// https://rust-lang.zulipchat.com/#narrow/stream/182449-t-compiler.2Fhelp/topic/.E2.9C.94.20link.20new.20library.20into.20stage1.2Frustc
14201420
if self.config.llvm_enzyme {
14211421
rustflags.arg("-l");
1422-
rustflags.arg("LLVMEnzyme-17");
1422+
rustflags.arg("Enzyme-17");
14231423
}
14241424

14251425
let use_new_symbol_mangling = match self.config.rust_new_symbol_mangling {

0 commit comments

Comments
 (0)