aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2024-04-10 13:52:06 +0200
committerOvahlord <dreadkiller@gmx.de>2024-05-28 16:40:31 +0200
commit1d3af156a32ae6df941d286306d454dca0ade342 (patch)
tree5c158bdd9b7bc7f4750239282816e4c28ac0e9c5
parentb60a8b209528129a5bf74a0d03c3d5e424fe7adb (diff)
Build: Update required GCC version to 11.1
(cherry picked from commit 16853af7c84b1204357333db399100604ab6cb29)
-rw-r--r--.github/workflows/gcc-build.yml6
-rw-r--r--cmake/compiler/gcc/settings.cmake2
2 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/gcc-build.yml b/.github/workflows/gcc-build.yml
index 60e8028b5a7..4f7b5818def 100644
--- a/.github/workflows/gcc-build.yml
+++ b/.github/workflows/gcc-build.yml
@@ -6,13 +6,13 @@ on:
jobs:
build:
- runs-on: ubuntu-20.04
+ runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2
- name: Dependencies
run: |
- sudo apt-get update && sudo apt-get install -yq libboost-all-dev g++-10
- sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 100 --slave /usr/bin/g++ g++ /usr/bin/g++-10
+ sudo apt-get update && sudo apt-get install -yq libboost-all-dev g++-11
+ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11
- name: Setup
run: |
mkdir bin
diff --git a/cmake/compiler/gcc/settings.cmake b/cmake/compiler/gcc/settings.cmake
index b756901f097..99417c1fbf9 100644
--- a/cmake/compiler/gcc/settings.cmake
+++ b/cmake/compiler/gcc/settings.cmake
@@ -3,7 +3,7 @@ target_compile_definitions(trinity-compile-option-interface
INTERFACE
-D_BUILD_DIRECTIVE="$<CONFIG>")
-set(GCC_EXPECTED_VERSION 10.0.0)
+set(GCC_EXPECTED_VERSION 11.1.0)
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)
message(FATAL_ERROR "GCC: TrinityCore requires version ${GCC_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")