mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
CMakeLists updated, should now build without LLVM when EVMJIT is not enabled [#81588646]
This commit is contained in:
parent
2524c729cf
commit
2d6aa468c6
2 changed files with 5 additions and 9 deletions
|
|
@ -25,8 +25,6 @@ if ("${TARGET_PLATFORM}" STREQUAL "w64")
|
|||
target_link_libraries(${EXECUTABLE} iphlpapi)
|
||||
target_link_libraries(${EXECUTABLE} boost_thread_win32-mt-s)
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
||||
elseif (UNIX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
||||
else ()
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${EXECUTABLE} ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
|
@ -42,13 +40,12 @@ message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
|
|||
include_directories(${LLVM_INCLUDE_DIRS})
|
||||
add_definitions(${LLVM_DEFINITIONS})
|
||||
|
||||
llvm_map_components_to_libnames(llvm_libs core support mcjit x86asmparser x86codegen)
|
||||
target_link_libraries(evmcc ${llvm_libs})
|
||||
# llvm_map_components_to_libnames(llvm_libs core support mcjit x86asmparser x86codegen)
|
||||
# target_link_libraries(evmcc ${llvm_libs})
|
||||
|
||||
# end of LLVM specific commands
|
||||
|
||||
|
||||
|
||||
install( TARGETS ${EXECUTABLE} DESTINATION bin )
|
||||
|
||||
cmake_policy(SET CMP0015 NEW)
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ target_link_libraries(${EXECUTABLE} ethcore)
|
|||
target_link_libraries(${EXECUTABLE} evm)
|
||||
target_link_libraries(${EXECUTABLE} evmface)
|
||||
|
||||
|
||||
if ("${TARGET_PLATFORM}" STREQUAL "w64")
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libgcc -static-libstdc++")
|
||||
target_link_libraries(${EXECUTABLE} gcc)
|
||||
|
|
@ -30,14 +31,12 @@ if ("${TARGET_PLATFORM}" STREQUAL "w64")
|
|||
target_link_libraries(${EXECUTABLE} iphlpapi)
|
||||
target_link_libraries(${EXECUTABLE} boost_thread_win32-mt-s)
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS)
|
||||
elseif (UNIX)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
|
||||
else ()
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${EXECUTABLE} ${CMAKE_THREAD_LIBS_INIT})
|
||||
endif ()
|
||||
|
||||
# LLVM specific commands
|
||||
# LLVM specific config
|
||||
|
||||
find_package(LLVM REQUIRED CONFIG)
|
||||
|
||||
|
|
@ -50,7 +49,7 @@ add_definitions(${LLVM_DEFINITIONS})
|
|||
llvm_map_components_to_libnames(llvm_libs core support mcjit x86asmparser x86codegen)
|
||||
target_link_libraries(evmjit ${llvm_libs})
|
||||
|
||||
# end of LLVM specific commands
|
||||
# end of LLVM specific config
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue