mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
feat(Cmake/Compiler): deprecated clang6 and gcc 7 (#5671)
This commit is contained in:
4
.github/SECURITY.md
vendored
4
.github/SECURITY.md
vendored
@@ -38,8 +38,8 @@ Versions of CLang:
|
||||
| 11 | :white_check_mark: |
|
||||
| 10 | :white_check_mark: |
|
||||
| 9 | :white_check_mark: |
|
||||
| 6 | :white_check_mark: |
|
||||
| 5 and lower | :red_circle: |
|
||||
| 7 | :white_check_mark: |
|
||||
| 6 and lower | :red_circle: |
|
||||
|
||||
Versions of GCC:
|
||||
|
||||
|
||||
2
.github/workflows/core_build.yml
vendored
2
.github/workflows/core_build.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
||||
modules: without
|
||||
extra_logs: false
|
||||
- os: ubuntu-18.04
|
||||
compiler: clang # default in 18.04 is clang 6
|
||||
compiler: clang7
|
||||
modules: without
|
||||
extra_logs: false
|
||||
- os: ubuntu-18.04
|
||||
|
||||
@@ -47,10 +47,10 @@ case $COMPILER in
|
||||
echo "CCOMPILERCXX=\"clang++\"" >> ./conf/config.sh
|
||||
;;
|
||||
|
||||
"clang6" )
|
||||
time sudo apt-get install -y clang-6.0
|
||||
echo "CCOMPILERC=\"clang-6.0\"" >> ./conf/config.sh
|
||||
echo "CCOMPILERCXX=\"clang++-6.0\"" >> ./conf/config.sh
|
||||
"clang7" )
|
||||
time sudo apt-get install -y clang-7
|
||||
echo "CCOMPILERC=\"clang-7\"" >> ./conf/config.sh
|
||||
echo "CCOMPILERCXX=\"clang++-7\"" >> ./conf/config.sh
|
||||
;;
|
||||
|
||||
"clang8" )
|
||||
|
||||
@@ -52,10 +52,10 @@ case $COMPILER in
|
||||
echo "CCOMPILERCXX=\"clang++\"" >> ./conf/config.sh
|
||||
;;
|
||||
|
||||
"clang6" )
|
||||
time sudo apt-get install -y clang-6.0
|
||||
echo "CCOMPILERC=\"clang-6.0\"" >> ./conf/config.sh
|
||||
echo "CCOMPILERCXX=\"clang++-6.0\"" >> ./conf/config.sh
|
||||
"clang7" )
|
||||
time sudo apt-get install -y clang-7
|
||||
echo "CCOMPILERC=\"clang-7\"" >> ./conf/config.sh
|
||||
echo "CCOMPILERCXX=\"clang++-7\"" >> ./conf/config.sh
|
||||
;;
|
||||
|
||||
"clang8" )
|
||||
|
||||
@@ -14,7 +14,7 @@ target_compile_definitions(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-D_BUILD_DIRECTIVE="${CMAKE_BUILD_TYPE}")
|
||||
|
||||
set(CLANG_EXPECTED_VERSION 6.0.0)
|
||||
set(CLANG_EXPECTED_VERSION 7.0.0)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS CLANG_EXPECTED_VERSION)
|
||||
message(FATAL_ERROR "Clang: AzerothCore requires version ${CLANG_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
|
||||
@@ -8,7 +8,7 @@ target_compile_definitions(acore-compile-option-interface
|
||||
INTERFACE
|
||||
-D_BUILD_DIRECTIVE="${CMAKE_BUILD_TYPE}")
|
||||
|
||||
set(GCC_EXPECTED_VERSION 7.0.0)
|
||||
set(GCC_EXPECTED_VERSION 8.0.0)
|
||||
|
||||
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS GCC_EXPECTED_VERSION)
|
||||
message(FATAL_ERROR "GCC: This project requires version ${GCC_EXPECTED_VERSION} to build but found ${CMAKE_CXX_COMPILER_VERSION}")
|
||||
|
||||
Reference in New Issue
Block a user