Change the lld path on macos homebrew

Homebrew now provides lld in a separate formula; it was part of llvm
formula.
This commit is contained in:
Dimitris Dinodimos 2025-04-04 00:18:51 +03:00 committed by Alex Rønne Petersen
parent e9220525e8
commit 155b34ba05

View file

@ -12,8 +12,8 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h
/usr/lib/llvm-19/include /usr/lib/llvm-19/include
/usr/local/llvm190/include /usr/local/llvm190/include
/usr/local/llvm19/include /usr/local/llvm19/include
/usr/local/opt/llvm@19/include /usr/local/opt/lld@19/include
/opt/homebrew/opt/llvm@19/include /opt/homebrew/opt/lld@19/include
/mingw64/include) /mingw64/include)
find_library(LLD_LIBRARY NAMES lld-19.0 lld190 lld NAMES_PER_DIR find_library(LLD_LIBRARY NAMES lld-19.0 lld190 lld NAMES_PER_DIR
@ -22,8 +22,8 @@ find_library(LLD_LIBRARY NAMES lld-19.0 lld190 lld NAMES_PER_DIR
/usr/lib/llvm-19/lib /usr/lib/llvm-19/lib
/usr/local/llvm190/lib /usr/local/llvm190/lib
/usr/local/llvm19/lib /usr/local/llvm19/lib
/usr/local/opt/llvm@19/lib /usr/local/opt/lld@19/lib
/opt/homebrew/opt/llvm@19/lib /opt/homebrew/opt/lld@19/lib
) )
if(EXISTS ${LLD_LIBRARY}) if(EXISTS ${LLD_LIBRARY})
set(LLD_LIBRARIES ${LLD_LIBRARY}) set(LLD_LIBRARIES ${LLD_LIBRARY})
@ -37,8 +37,8 @@ else()
/usr/lib/llvm-19/lib /usr/lib/llvm-19/lib
/usr/local/llvm190/lib /usr/local/llvm190/lib
/usr/local/llvm19/lib /usr/local/llvm19/lib
/usr/local/opt/llvm@19/lib /usr/local/opt/lld@19/lib
/opt/homebrew/opt/llvm@19/lib /opt/homebrew/opt/lld@19/lib
/mingw64/lib /mingw64/lib
/c/msys64/mingw64/lib /c/msys64/mingw64/lib
c:/msys64/mingw64/lib) c:/msys64/mingw64/lib)