Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/target/metadata_module.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,12 @@ runtime::Module CreateMetadataModule(
crt_exportable_modules.push_back(target_module);
target_module = CreateCSourceCrtMetadataModule(crt_exportable_modules, target);
} else if (target->kind->name == "llvm") {
#ifdef TVM_LLVM_VERSION
crt_exportable_modules.push_back(target_module);
target_module = CreateLLVMCrtMetadataModule(crt_exportable_modules, target);
#else // TVM_LLVM_VERSION
LOG(FATAL) << "TVM was not built with LLVM enabled.";
#endif // TVM_LLVM_VERSION
}
} else {
if (!non_crt_exportable_modules.empty()) {
Expand Down