adds llvm build support incl. conan
This commit is contained in:
parent
a0ca3cdfa5
commit
9459632f6c
|
@ -15,14 +15,14 @@ if(TARGET tcc::tcc)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(WITH_LLVM)
|
if(WITH_LLVM)
|
||||||
if(FALSE)
|
if(DEFINED ENV{LLVM_HOME})
|
||||||
if(DEFINED ENV{LLVM_HOME})
|
find_path (LLVM_DIR LLVM-Config.cmake $ENV{LLVM_HOME}/lib/cmake/llvm)
|
||||||
find_path (LLVM_DIR LLVM-Config.cmake $ENV{LLVM_HOME}/lib/cmake/llvm)
|
endif(DEFINED ENV{LLVM_HOME})
|
||||||
endif(DEFINED ENV{LLVM_HOME})
|
find_package(LLVM QUIET CONFIG)
|
||||||
find_package(LLVM REQUIRED CONFIG)
|
if(LLVM_FOUND)
|
||||||
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
||||||
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
|
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
|
||||||
llvm_map_components_to_libnames(llvm_libs support core mcjit x86codegen x86asmparser)
|
llvm_map_components_to_libnames(llvm_libs support core mcjit x86codegen x86asmparser)
|
||||||
else()
|
else()
|
||||||
find_package(LLVM REQUIRED LLVMSupport LLVMCore LLVMMCJIT LLVMX86CodeGen LLVMX86AsmParser)
|
find_package(LLVM REQUIRED LLVMSupport LLVMCore LLVMMCJIT LLVMX86CodeGen LLVMX86AsmParser)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue