mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
build: add /usr/lib to LLVM_LIB search paths
It seems that on Alpine Linux (Edge), the LLVM_LIBRARY_DIRS cmake variable doesn't look in /usr/lib, which is where the relevant files are on Alpine. Only do this for !WIN32 systems.
This commit is contained in:
committed by
Christoffer Lerno
parent
a3d15fe16c
commit
819a85ee06
@@ -150,6 +150,13 @@ if(C3_WITH_LLVM)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (NOT WIN32)
|
||||||
|
# Some systems (such as Alpine Linux) seem to put some of the relevant
|
||||||
|
# LLVM files in /usr/lib, but this doesn't seem to be included in the
|
||||||
|
# value of LLVM_LIBRARY_DIRS.
|
||||||
|
list(APPEND LLVM_LIBRARY_DIRS /usr/lib)
|
||||||
|
endif()
|
||||||
|
|
||||||
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}")
|
||||||
message(STATUS "Libraries located in: ${LLVM_LIBRARY_DIRS}")
|
message(STATUS "Libraries located in: ${LLVM_LIBRARY_DIRS}")
|
||||||
|
|||||||
Reference in New Issue
Block a user