1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:37:44 +00:00

Meta: Add GCC 13 and Clang 16 to compiler autodetection

This commit is contained in:
Daniel Bertalan 2023-05-21 14:12:37 +02:00 committed by Andrew Kaster
parent 4202bb597b
commit 81b6723b29
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@ die() {
pick_clang() { pick_clang() {
local BEST_VERSION=0 local BEST_VERSION=0
for CLANG_CANDIDATE in clang clang-14 clang-15 /opt/homebrew/opt/llvm/bin/clang ; do for CLANG_CANDIDATE in clang clang-14 clang-15 clang-16 /opt/homebrew/opt/llvm/bin/clang ; do
if ! command -v $CLANG_CANDIDATE >/dev/null 2>&1; then if ! command -v $CLANG_CANDIDATE >/dev/null 2>&1; then
continue continue
fi fi

View file

@ -191,14 +191,14 @@ pick_host_compiler() {
return return
fi fi
find_newest_compiler clang clang-14 clang-15 /opt/homebrew/opt/llvm/bin/clang find_newest_compiler clang clang-14 clang-15 clang-16 /opt/homebrew/opt/llvm/bin/clang
if is_supported_compiler "$HOST_COMPILER"; then if is_supported_compiler "$HOST_COMPILER"; then
export CC="${HOST_COMPILER}" export CC="${HOST_COMPILER}"
export CXX="${HOST_COMPILER/clang/clang++}" export CXX="${HOST_COMPILER/clang/clang++}"
return return
fi fi
find_newest_compiler egcc gcc gcc-12 /usr/local/bin/gcc-12 /opt/homebrew/bin/gcc-12 find_newest_compiler egcc gcc gcc-12 gcc-13 /usr/local/bin/gcc-{12,13} /opt/homebrew/bin/gcc-{12,13}
if is_supported_compiler "$HOST_COMPILER"; then if is_supported_compiler "$HOST_COMPILER"; then
export CC="${HOST_COMPILER}" export CC="${HOST_COMPILER}"
export CXX="${HOST_COMPILER/gcc/g++}" export CXX="${HOST_COMPILER/gcc/g++}"