Commit 155b34ba05

Dimitris Dinodimos <dimdin@gmail.com>
2025-04-03 23:18:51
Change the lld path on macos homebrew
Homebrew now provides lld in a separate formula; it was part of llvm formula.
1 parent e922052
Changed files (1)
cmake/Findlld.cmake
@@ -12,8 +12,8 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h
         /usr/lib/llvm-19/include
         /usr/local/llvm190/include
         /usr/local/llvm19/include
-        /usr/local/opt/llvm@19/include
-        /opt/homebrew/opt/llvm@19/include
+        /usr/local/opt/lld@19/include
+        /opt/homebrew/opt/lld@19/include
         /mingw64/include)
 
 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/local/llvm190/lib
         /usr/local/llvm19/lib
-        /usr/local/opt/llvm@19/lib
-        /opt/homebrew/opt/llvm@19/lib
+        /usr/local/opt/lld@19/lib
+        /opt/homebrew/opt/lld@19/lib
 )
 if(EXISTS ${LLD_LIBRARY})
     set(LLD_LIBRARIES ${LLD_LIBRARY})
@@ -37,8 +37,8 @@ else()
                 /usr/lib/llvm-19/lib
                 /usr/local/llvm190/lib
                 /usr/local/llvm19/lib
-                /usr/local/opt/llvm@19/lib
-                /opt/homebrew/opt/llvm@19/lib
+                /usr/local/opt/lld@19/lib
+                /opt/homebrew/opt/lld@19/lib
                 /mingw64/lib
                 /c/msys64/mingw64/lib
                 c:/msys64/mingw64/lib)