Skip to content

Commit 9225129

Browse files
committed
Solve Julia build issue
1 parent b34041e commit 9225129

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

enzyme/BCLoad/BCLoader.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,11 @@ bool provideDefinitions(Module &M, std::set<std::string> ignoreFunctions,
132132
}
133133
toReplace.push_back(name.str());
134134
}
135-
BC->setTargetTriple(llvm::Triple(""));
135+
#if LLVM_VERSION_MAJOR >= 21
136+
BC->setTargetTriple(llvm::Triple(""));
137+
#else
138+
BC->setTargetTriple("");
139+
#endif
136140
Linker L(M);
137141
L.linkInModule(std::move(BC));
138142
for (auto name : toReplace) {

0 commit comments

Comments
 (0)