From 5c3b182b7eacc6fc6bf11271019d16ca8a107805 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sun, 10 Jul 2022 09:21:50 +0200 Subject: [PATCH] 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. --- Meta/serenity.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++}")