mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fix llvm-ar detection (BUILD_BC_LIBS only).
This commit is contained in:
@@ -405,7 +405,10 @@ macro(build_runtime d_flags c_flags ld_flags lib_suffix path_suffix outlist_targ
|
||||
endif()
|
||||
|
||||
if(BUILD_BC_LIBS)
|
||||
find_program(LLVM_AR_EXE llvm-ar ${LLVM_INSTDIR}/bin DOC "path to llvm-ar tool")
|
||||
find_program(LLVM_AR_EXE llvm-ar
|
||||
HINTS ${LLVM_ROOT_DIR}/bin
|
||||
DOC "path to llvm-ar tool"
|
||||
)
|
||||
if(NOT LLVM_AR_EXE)
|
||||
message(SEND_ERROR "llvm-ar not found")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user