mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
Meta: Document that clang-15 is required, and update the compiler checks
We require clang-15 for consteval.
This commit is contained in:
parent
b4939295c2
commit
421aa8da1e
4 changed files with 8 additions and 8 deletions
|
@ -157,7 +157,7 @@ is_supported_compiler() {
|
|||
[ "$BUILD_VERSION" -ge 14030022 ] && return 0
|
||||
elif $COMPILER --version 2>&1 | grep "clang" >/dev/null; then
|
||||
# Clang version check
|
||||
[ "$MAJOR_VERSION" -ge 14 ] && return 0
|
||||
[ "$MAJOR_VERSION" -ge 15 ] && return 0
|
||||
else
|
||||
# GCC version check
|
||||
[ "$MAJOR_VERSION" -ge 12 ] && return 0
|
||||
|
@ -191,7 +191,7 @@ pick_host_compiler() {
|
|||
return
|
||||
fi
|
||||
|
||||
find_newest_compiler clang clang-14 clang-15 clang-16 /opt/homebrew/opt/llvm/bin/clang
|
||||
find_newest_compiler clang clang-15 clang-16 /opt/homebrew/opt/llvm/bin/clang
|
||||
if is_supported_compiler "$HOST_COMPILER"; then
|
||||
export CC="${HOST_COMPILER}"
|
||||
export CXX="${HOST_COMPILER/clang/clang++}"
|
||||
|
@ -206,9 +206,9 @@ pick_host_compiler() {
|
|||
fi
|
||||
|
||||
if [ "$(uname -s)" = "Darwin" ]; then
|
||||
die "Please make sure that Xcode 14.3, Homebrew Clang 14, or higher is installed."
|
||||
die "Please make sure that Xcode 14.3, Homebrew Clang 15, or higher is installed."
|
||||
else
|
||||
die "Please make sure that GCC version 12, Clang version 14, or higher is installed."
|
||||
die "Please make sure that GCC version 12, Clang version 15, or higher is installed."
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue