mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Updates
This commit is contained in:
parent
c5dee2f8bc
commit
29f6313bb3
6 changed files with 20 additions and 19 deletions
|
@ -119,7 +119,7 @@ add_executable(${PROJECT_NAME}
|
|||
${SRC_FILES}
|
||||
)
|
||||
|
||||
find_package(LLVM 13 CONFIG COMPONENTS)
|
||||
find_package(LLVM 18 CONFIG COMPONENTS)
|
||||
|
||||
if (LLVM_FOUND)
|
||||
message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
||||
|
@ -128,29 +128,29 @@ if (LLVM_FOUND)
|
|||
include_directories(${LLVM_INCLUDE_DIRS})
|
||||
add_definitions(${LLVM_DEFINITIONS})
|
||||
|
||||
set(TARGET_LIBS_OS "-lLLVM-13")
|
||||
set(TARGET_LIBS_OS "-lLLVM-18")
|
||||
else()
|
||||
include_directories(
|
||||
../extern/llvm-project_13_0_1/llvm/include
|
||||
../extern/llvm-project_13_0_1/llvm/lib/Target
|
||||
../extern/llvm-project_18_1_4/llvm/include
|
||||
../extern/llvm-project_18_1_4/llvm/lib/Target
|
||||
)
|
||||
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
include_directories(
|
||||
../extern/llvm_linux_13_0_1/include
|
||||
../extern/llvm_linux_13_0_1/lib/Target/X86
|
||||
../extern/llvm_linux_18_1_4/include
|
||||
../extern/llvm_linux_18_1_4/lib/Target/X86
|
||||
)
|
||||
set(LLVM_LIB "${CMAKE_CURRENT_SOURCE_DIR}/../extern/llvm_linux_13_0_1/lib")
|
||||
set(LLVM_LIB "${CMAKE_CURRENT_SOURCE_DIR}/../extern/llvm_linux_18_1_4/lib")
|
||||
else()
|
||||
include_directories(
|
||||
../extern/llvm_linux_rel_13_0_1/include
|
||||
../extern/llvm_linux_rel_13_0_1/lib/Target/X86
|
||||
../extern/llvm_linux_rel_18_1_4/include
|
||||
../extern/llvm_linux_rel_18_1_4/lib/Target/X86
|
||||
)
|
||||
set(LLVM_LIB "${CMAKE_CURRENT_SOURCE_DIR}/../extern/llvm_linux_rel_13_0_1/lib")
|
||||
set(LLVM_LIB "${CMAKE_CURRENT_SOURCE_DIR}/../extern/llvm_linux_rel_18_1_4/lib")
|
||||
endif()
|
||||
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../extern/llvm_linux_13_0_1/bin/llvm-config --system-libs --link-static
|
||||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/../extern/llvm_linux_18_1_4/bin/llvm-config --system-libs --link-static
|
||||
OUTPUT_VARIABLE LLVM_SYSTEM_LIBS
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
RESULT_VARIABLE EXEC_RESULT
|
||||
|
@ -163,8 +163,8 @@ else()
|
|||
message(FATAL_ERROR "llvm-config couldn't be executed: ${EXEC_RESULT}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
message(STATUS "Found LLVM 13.0.1 (local build)")
|
||||
|
||||
message(STATUS "Found LLVM 18.1.4 (local build)")
|
||||
endif()
|
||||
|
||||
if (${APPLE})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue