Allow for using LLVM from Homebrew and include its libc++

This commit is contained in:
Nadia Holmquist Pedersen
2021-07-23 06:31:20 +02:00
parent a09ce44c48
commit c0f650b66e
3 changed files with 22 additions and 3 deletions

View File

@ -116,8 +116,10 @@ if (ENABLE_LTO)
if (NOT LLD STREQUAL "LLD-NOTFOUND")
add_link_options(-fuse-ld=lld)
endif()
set(CMAKE_AR "llvm-ar")
set(CMAKE_RANLIB "llvm-ranlib")
if (NOT APPLE)
set(CMAKE_AR "llvm-ar")
set(CMAKE_RANLIB "llvm-ranlib")
endif()
endif()
endif()