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 66a58f7478
commit f21ae77a01
3 changed files with 22 additions and 3 deletions

View File

@ -123,8 +123,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()