mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:27:43 +00:00
Meta+CI+Documentation: Bump host gcc requirement up to gcc 11
Bump macOS CI version to macOS 11 while we're here.
This commit is contained in:
parent
d70aba6a11
commit
c62c10caf0
13 changed files with 51 additions and 45 deletions
|
@ -144,7 +144,7 @@ create_build_dir() {
|
|||
pick_gcc() {
|
||||
local BEST_VERSION=0
|
||||
local BEST_GCC_CANDIDATE=""
|
||||
for GCC_CANDIDATE in egcc gcc gcc-10 gcc-11 gcc-12 /usr/local/bin/gcc-11 /opt/homebrew/bin/gcc-11; do
|
||||
for GCC_CANDIDATE in egcc gcc gcc-11 gcc-12 /usr/local/bin/gcc-11 /opt/homebrew/bin/gcc-11; do
|
||||
if ! command -v $GCC_CANDIDATE >/dev/null 2>&1; then
|
||||
continue
|
||||
fi
|
||||
|
@ -164,8 +164,8 @@ pick_gcc() {
|
|||
done
|
||||
CMAKE_ARGS+=("-DCMAKE_C_COMPILER=$BEST_GCC_CANDIDATE")
|
||||
CMAKE_ARGS+=("-DCMAKE_CXX_COMPILER=${BEST_GCC_CANDIDATE/gcc/g++}")
|
||||
if [ "$BEST_VERSION" -lt 10 ]; then
|
||||
die "Please make sure that GCC version 10.2 or higher is installed."
|
||||
if [ "$BEST_VERSION" -lt 11 ]; then
|
||||
die "Please make sure that GCC version 11 or higher is installed."
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue