summaryrefslogtreecommitdiff
path: root/Meta/serenity.sh
diff options
context:
space:
mode:
authorAndrew Kaster <andrewdkaster@gmail.com>2022-11-12 21:25:52 +0000
committerAndrew Kaster <andrewdkaster@gmail.com>2022-11-25 18:41:21 -0700
commit9bf2a7c7e5db5613b494a8cd8cb47b6aa9c3e7f6 (patch)
tree650cc107b3a916edfb21893bf00fcd0e5d01a961 /Meta/serenity.sh
parentd9c1eb860f103320b784a64752a2c5219cdee543 (diff)
downloadserenity-9bf2a7c7e5db5613b494a8cd8cb47b6aa9c3e7f6.zip
Meta: Use proper versions in is_compiler_supported check in serenity.sh
We were checking the compilers against clang-12 and gcc-10. Since the check itself is confusing, some comments are warranted.
Diffstat (limited to 'Meta/serenity.sh')
-rwxr-xr-xMeta/serenity.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/Meta/serenity.sh b/Meta/serenity.sh
index 63ce4cbfcd..2d1dce6b6a 100755
--- a/Meta/serenity.sh
+++ b/Meta/serenity.sh
@@ -156,9 +156,11 @@ is_supported_compiler() {
if $COMPILER --version 2>&1 | grep "Apple clang" >/dev/null; then
return 1
elif $COMPILER --version 2>&1 | grep "clang" >/dev/null; then
- [ "$MAJOR_VERSION" -gt 12 ] && return 0
+ # Clang version check
+ [ "$MAJOR_VERSION" -ge 13 ] && return 0
else
- [ "$MAJOR_VERSION" -gt 10 ] && return 0
+ # GCC version check
+ [ "$MAJOR_VERSION" -ge 12 ] && return 0
fi
return 1
}