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:
Andrew Kaster 2022-12-17 15:35:22 -07:00 committed by Andrew Kaster
parent 74927ac76d
commit d2e4565f72
Notes: sideshowbarker 2024-07-17 09:48:50 +09:00

View file

@ -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