authorgravatar for ziyiyan@proton.meZiyi Yan <ziyiyan@proton.me> 2025-04-05 23:25:39-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-04-06 06:25:39+00:00
log61b87ebae277c2be5be80f3f8c1691a3577c2597
tree4f9312b39e6a23ba217f612068f137840fabbfb1
parent470e2b63d9f28984f20c66ee6730fa30241bae5a
signaturebadge-check Signed by PGP key B5690EEEBB952194

Add lld path of linuxbrew installation (#23466)

Co-authored-by: Alex Rønne Petersen <alex@alexrp.com>

1 files changed, 3 insertions(+), 0 deletions(-)

cmake/Findlld.cmake+3
...@@ -14,6 +14,7 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h...@@ -14,6 +14,7 @@ find_path(LLD_INCLUDE_DIRS NAMES lld/Common/Driver.h
14 /usr/local/llvm20/include14 /usr/local/llvm20/include
15 /usr/local/opt/lld@20/include15 /usr/local/opt/lld@20/include
16 /opt/homebrew/opt/lld@20/include16 /opt/homebrew/opt/lld@20/include
17 /home/linuxbrew/.linuxbrew/opt/lld@20/include
17 /mingw64/include)18 /mingw64/include)
1819
19find_library(LLD_LIBRARY NAMES lld-20.0 lld200 lld NAMES_PER_DIR20find_library(LLD_LIBRARY NAMES lld-20.0 lld200 lld NAMES_PER_DIR
...@@ -24,6 +25,7 @@ find_library(LLD_LIBRARY NAMES lld-20.0 lld200 lld NAMES_PER_DIR...@@ -24,6 +25,7 @@ find_library(LLD_LIBRARY NAMES lld-20.0 lld200 lld NAMES_PER_DIR
24 /usr/local/llvm20/lib25 /usr/local/llvm20/lib
25 /usr/local/opt/lld@20/lib26 /usr/local/opt/lld@20/lib
26 /opt/homebrew/opt/lld@20/lib27 /opt/homebrew/opt/lld@20/lib
28 /home/linuxbrew/.linuxbrew/opt/lld@20/lib
27)29)
28if(EXISTS ${LLD_LIBRARY})30if(EXISTS ${LLD_LIBRARY})
29 set(LLD_LIBRARIES ${LLD_LIBRARY})31 set(LLD_LIBRARIES ${LLD_LIBRARY})
...@@ -39,6 +41,7 @@ else()...@@ -39,6 +41,7 @@ else()
39 /usr/local/llvm20/lib41 /usr/local/llvm20/lib
40 /usr/local/opt/lld@20/lib42 /usr/local/opt/lld@20/lib
41 /opt/homebrew/opt/lld@20/lib43 /opt/homebrew/opt/lld@20/lib
44 /home/linuxbrew/.linuxbrew/opt/lld@20/lib
42 /mingw64/lib45 /mingw64/lib
43 /c/msys64/mingw64/lib46 /c/msys64/mingw64/lib
44 c:/msys64/mingw64/lib)47 c:/msys64/mingw64/lib)