Skip to content

Commit 94e68fb

Browse files
committed
[LLVM][MSWIN][CI] Fix LLVM module build with latest CI update
1 parent 1808a94 commit 94e68fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/target/llvm/llvm_module.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,13 @@ void LLVMModuleNode::InitORCJIT() {
515515
const llvm::Triple& triple) -> std::unique_ptr<llvm::orc::ObjectLayer> {
516516
#endif
517517
#if _WIN32
518+
#if TVM_LLVM_VERSION >= 210
519+
auto GetMemMgr = [](const llvm::MemoryBuffer&) {
520+
return std::make_unique<SectionMemoryManager>();
521+
};
522+
#else
518523
auto GetMemMgr = []() { return std::make_unique<llvm::SectionMemoryManager>(); };
524+
#endif
519525
auto ObjLinkingLayer =
520526
std::make_unique<llvm::orc::RTDyldObjectLinkingLayer>(session, std::move(GetMemMgr));
521527
#else

0 commit comments

Comments
 (0)