mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-29 16:21:29 +00:00
Meta: Allow building with Apple clang 14.x
We previously disregarded Apple clang entirely, since no released version was able to succesfully build Lagom. Xcode 14 seems to have all the features we need, as we haven't added any code that needs trunk clang features in quite a while.
This commit is contained in:
parent
74927ac76d
commit
d2e4565f72
Notes:
sideshowbarker
2024-07-17 09:48:50 +09:00
Author: https://github.com/ADKaster Commit: https://github.com/SerenityOS/serenity/commit/d2e4565f72 Pull-request: https://github.com/SerenityOS/serenity/pull/16560 Reviewed-by: https://github.com/nico ✅
|
@ -154,7 +154,8 @@ is_supported_compiler() {
|
|||
local MAJOR_VERSION=""
|
||||
MAJOR_VERSION="${VERSION%%.*}"
|
||||
if $COMPILER --version 2>&1 | grep "Apple clang" >/dev/null; then
|
||||
return 1
|
||||
# Apple Clang version check
|
||||
[ "$MAJOR_VERSION" -ge 14 ] && return 0
|
||||
elif $COMPILER --version 2>&1 | grep "clang" >/dev/null; then
|
||||
# Clang version check
|
||||
[ "$MAJOR_VERSION" -ge 13 ] && return 0
|
||||
|
@ -172,9 +173,6 @@ find_newest_compiler() {
|
|||
if ! command -v "$CANDIDATE" >/dev/null 2>&1; then
|
||||
continue
|
||||
fi
|
||||
if $CANDIDATE --version 2>&1 | grep "Apple clang" >/dev/null; then
|
||||
continue
|
||||
fi
|
||||
if ! $CANDIDATE -dumpversion >/dev/null 2>&1; then
|
||||
continue
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue