Skip to content

Commit 155b34b

Browse files
dimdinalexrp
authored andcommitted
Change the lld path on macos homebrew
Homebrew now provides lld in a separate formula; it was part of llvm formula.
1 parent e922052 commit 155b34b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

cmake/Findlld.cmake

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h
1212
/usr/lib/llvm-19/include
1313
/usr/local/llvm190/include
1414
/usr/local/llvm19/include
15-
/usr/local/opt/llvm@19/include
16-
/opt/homebrew/opt/llvm@19/include
15+
/usr/local/opt/lld@19/include
16+
/opt/homebrew/opt/lld@19/include
1717
/mingw64/include)
1818

1919
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
2222
/usr/lib/llvm-19/lib
2323
/usr/local/llvm190/lib
2424
/usr/local/llvm19/lib
25-
/usr/local/opt/llvm@19/lib
26-
/opt/homebrew/opt/llvm@19/lib
25+
/usr/local/opt/lld@19/lib
26+
/opt/homebrew/opt/lld@19/lib
2727
)
2828
if(EXISTS ${LLD_LIBRARY})
2929
set(LLD_LIBRARIES ${LLD_LIBRARY})
@@ -37,8 +37,8 @@ else()
3737
/usr/lib/llvm-19/lib
3838
/usr/local/llvm190/lib
3939
/usr/local/llvm19/lib
40-
/usr/local/opt/llvm@19/lib
41-
/opt/homebrew/opt/llvm@19/lib
40+
/usr/local/opt/lld@19/lib
41+
/opt/homebrew/opt/lld@19/lib
4242
/mingw64/lib
4343
/c/msys64/mingw64/lib
4444
c:/msys64/mingw64/lib)

0 commit comments

Comments
 (0)