|
|
@ -9,6 +9,7 @@ if(LLVM_DIR) # local LLVM build |
|
|
|
find_package(LLVM REQUIRED CONFIG) |
|
|
|
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}") |
|
|
|
message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}") |
|
|
|
add_definitions(${LLVM_DEFINITIONS}) |
|
|
|
# TODO: bitwriter is needed only for evmcc |
|
|
|
llvm_map_components_to_libnames(LLVM_LIBS core support mcjit x86asmparser x86codegen bitwriter) |
|
|
|
else() |
|
|
@ -19,11 +20,9 @@ else() |
|
|
|
set(LLVM_LIBS "-lLLVMBitWriter -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMX86AsmParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMMCJIT -lLLVMTarget -lLLVMRuntimeDyld -lLLVMObject -lLLVMMCParser -lLLVMBitReader -lLLVMExecutionEngine -lLLVMMC -lLLVMCore -lLLVMSupport -lz -lpthread -lffi -ltinfo -ldl -lm") |
|
|
|
endif() |
|
|
|
|
|
|
|
add_definitions(-D_SCL_SECURE_NO_WARNINGS) # LLVM needs it on Windows |
|
|
|
|
|
|
|
# Boost |
|
|
|
find_package(Boost REQUIRED) |
|
|
|
|
|
|
|
add_subdirectory(libevmjit) |
|
|
|
add_subdirectory(libevmjit-cpp) |
|
|
|
add_subdirectory(evmcc) |
|
|
|
add_subdirectory(evmcc) |
|
|
|