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
1414 /usr/local/llvm20/include
1515 /usr/local/opt/lld@20/include
1616 /opt/homebrew/opt/lld@20/include
17 /home/linuxbrew/.linuxbrew/opt/lld@20/include
1718 /mingw64/include)
1819
1920find_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
2425 /usr/local/llvm20/lib
2526 /usr/local/opt/lld@20/lib
2627 /opt/homebrew/opt/lld@20/lib
28 /home/linuxbrew/.linuxbrew/opt/lld@20/lib
2729)
2830if(EXISTS ${LLD_LIBRARY})
2931 set(LLD_LIBRARIES ${LLD_LIBRARY})
......@@ -39,6 +41,7 @@ else()
3941 /usr/local/llvm20/lib
4042 /usr/local/opt/lld@20/lib
4143 /opt/homebrew/opt/lld@20/lib
44 /home/linuxbrew/.linuxbrew/opt/lld@20/lib
4245 /mingw64/lib
4346 /c/msys64/mingw64/lib
4447 c:/msys64/mingw64/lib)