From 30ec20049222f1cc1a08abe83bc3c2cddb6b6b06 Mon Sep 17 00:00:00 2001 From: Lucian Feroiu Date: Tue, 6 May 2025 22:38:48 +0200 Subject: [PATCH] Add support for default Homebrew-installed LLD (#2119) --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 680e08c8e..41c2d1336 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -165,6 +165,10 @@ if(C3_WITH_LLVM) endif() endif() + if (EXISTS /opt/homebrew/lib) + list(APPEND LLVM_LIBRARY_DIRS /opt/homebrew/lib) + endif() + if (EXISTS /usr/lib) # Some systems (such as Alpine Linux) seem to put some of the relevant # LLVM files in /usr/lib, but this doesn't seem to be included in the