修改: cmake/Env.cmake
修改: src/objit/CMakeLists.txt
This commit is contained in:
parent
e82f7aff60
commit
65531c5ec8
@ -79,12 +79,12 @@ endif()
|
||||
if(EXISTS "${DEVTOOLS_DIR}/bin/ld.lld")
|
||||
execute_process(COMMAND cmake -E create_symlink
|
||||
"${DEVTOOLS_DIR}/bin/ld.lld" # Old name
|
||||
"${DEP_3RD_DIR}/deps/3rd/compile/ld" # New name
|
||||
"${DEP_3RD_DIR}/compile/ld" # New name
|
||||
)
|
||||
elseif(EXISTS "/usr/bin/ld.lld")
|
||||
execute_process(COMMAND cmake -E create_symlink
|
||||
"/usr/bin/ld.lld" # Old name
|
||||
"${DEP_3RD_DIR}/deps/3rd/compile/ld" # New name
|
||||
"${DEP_3RD_DIR}/compile/ld" # New name
|
||||
)
|
||||
endif()
|
||||
|
||||
|
@ -8,8 +8,7 @@ project(objit
|
||||
if (NOT DEP_3RD_DIR)
|
||||
message(FATAL_ERROR "DEP_3RD_DIR not set")
|
||||
endif()
|
||||
|
||||
set(LLVM_DIR "${DEP_3RD_DIR}/usr/local/oceanbase/devtools/lib/cmake/llvm")
|
||||
set(LLVM_DIR "/usr/lib/llvm-18/lib/cmake/llvm")
|
||||
find_package(LLVM REQUIRED CONFIG)
|
||||
|
||||
include(cmake/libutils.cmake)
|
||||
|
Loading…
x
Reference in New Issue
Block a user