diff --git a/CMakeLists.txt b/CMakeLists.txt index 1389cf670aa9..84122c77b691 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -163,6 +163,7 @@ if(USE_LLVM) message(STATUS "Build with LLVM " ${LLVM_PACKAGE_VERSION}) message(STATUS "Set TVM_LLVM_VERSION=" ${TVM_LLVM_VERSION}) add_definitions(-DTVM_LLVM_VERSION=${TVM_LLVM_VERSION}) + add_definitions(-DDMLC_USE_FOPEN64=0) llvm_map_components_to_libnames(LLVM_LIBS all) list(REMOVE_ITEM LLVM_LIBS LTO) list(APPEND TVM_LINKER_LIBS ${LLVM_LIBS})