summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Bertalan <dani@danielbertalan.dev>2022-07-10 09:21:50 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-10 12:38:05 +0200
commit5c3b182b7eacc6fc6bf11271019d16ca8a107805 (patch)
treef8eb13319da8eae141bd0de1ab09c0313f707569
parent710fb11c730fd38d748e6b2396353a040389b71c (diff)
downloadserenity-5c3b182b7eacc6fc6bf11271019d16ca8a107805.zip
Meta: Teach pick_host_compiler about Homebrew Clang
Homebrew does not add upstream LLVM's install location to $PATH so as not to conflict with XCode tools, so we should look for it by its absolute path. LLVM is installed to /opt/homebrew/opt/llvm on ARM Macs, and is a symlink that points to the latest stable LLVM version.
-rwxr-xr-xMeta/serenity.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/serenity.sh b/Meta/serenity.sh
index 198b4c025c..522cb24bff 100755
--- a/Meta/serenity.sh
+++ b/Meta/serenity.sh
@@ -199,7 +199,7 @@ pick_host_compiler() {
return
fi
- find_newest_compiler clang clang-13 clang-14 clang-15
+ find_newest_compiler clang clang-13 clang-14 clang-15 /opt/homebrew/opt/llvm/bin/clang
if is_supported_compiler "$HOST_COMPILER"; then
CMAKE_ARGS+=("-DCMAKE_C_COMPILER=$HOST_COMPILER")
CMAKE_ARGS+=("-DCMAKE_CXX_COMPILER=${HOST_COMPILER/clang/clang++}")