mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 04:25:13 +00:00
Meta: Prefer clang as a host compiler to gcc
This commit is contained in:
parent
d2e4565f72
commit
37517ba8bb
Notes:
sideshowbarker
2024-07-17 05:02:35 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/37517ba8bb Pull-request: https://github.com/SerenityOS/serenity/pull/16560 Reviewed-by: https://github.com/nico ✅
1 changed files with 7 additions and 7 deletions
|
@ -192,13 +192,6 @@ pick_host_compiler() {
|
|||
return
|
||||
fi
|
||||
|
||||
find_newest_compiler egcc gcc gcc-12 /usr/local/bin/gcc-12 /opt/homebrew/bin/gcc-12
|
||||
if is_supported_compiler "$HOST_COMPILER"; then
|
||||
export CC="${HOST_COMPILER}"
|
||||
export CXX="${HOST_COMPILER/gcc/g++}"
|
||||
return
|
||||
fi
|
||||
|
||||
find_newest_compiler clang clang-13 clang-14 clang-15 /opt/homebrew/opt/llvm/bin/clang
|
||||
if is_supported_compiler "$HOST_COMPILER"; then
|
||||
export CC="${HOST_COMPILER}"
|
||||
|
@ -206,6 +199,13 @@ pick_host_compiler() {
|
|||
return
|
||||
fi
|
||||
|
||||
find_newest_compiler egcc gcc gcc-12 /usr/local/bin/gcc-12 /opt/homebrew/bin/gcc-12
|
||||
if is_supported_compiler "$HOST_COMPILER"; then
|
||||
export CC="${HOST_COMPILER}"
|
||||
export CXX="${HOST_COMPILER/gcc/g++}"
|
||||
return
|
||||
fi
|
||||
|
||||
die "Please make sure that GCC version 12, Clang version 13, or higher is installed."
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue