mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-23 09:46:04 -05:00
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.
This commit is contained in:
parent
710fb11c73
commit
5c3b182b7e
Notes:
sideshowbarker
2024-07-17 09:33:24 +09:00
Author: https://github.com/BertalanD Commit: https://github.com/SerenityOS/serenity/commit/5c3b182b7e Pull-request: https://github.com/SerenityOS/serenity/pull/14535
1 changed files with 1 additions and 1 deletions
|
@ -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++}")
|
||||
|
|
Loading…
Add table
Reference in a new issue