Add g++-8 specific version support.

This commit is contained in:
Vasily
2019-06-24 19:21:14 +02:00
committed by username223
parent e8af73db28
commit ec5a575d93
2 changed files with 13 additions and 9 deletions
+1
View File
@@ -15,6 +15,7 @@ greaterThan(CLANG_VERSION, 4) {
message('clang' version is above 4. Using regular clang.)
}
else {
message('clang' version is not above 4. Attempting to use highest specific version.)
system("clang-5 --version") {
QMAKE_CXX = clang-5
message('clang-5' found.)
+12 -9
View File
@@ -1,14 +1,17 @@
# Makes sure the "g++" command used to invoke the compilation is abvove version 7.
# If it's at or above version 7 then we can use the default g++, otherwise we'll
# specifically need g++-7.
GCC_VERSION = $$system("g++ -dumpversion")
!greaterThan(GCC_VERSION, 6) {
message('g++' version is not above 7. Manually using 'g++-7'.)
!system(g++-7 --version) {
error(At least g++-7 required.)
greaterThan(GCC_VERSION, 6) {
message('g++' version is above 6. Using regular g++.)
}
else {
message('g++' version is not above 6. Attempting to use highest specific version.)
system(g++-7 --version) {
message('g++-7' found.)
QMAKE_CXX = g++-7
}
system(g++-8 --version) {
message('g++-8' found.)
QMAKE_CXX = g++-8
}
#g++-7 is needed for C++17 features. travis does not supply this by default.
QMAKE_CXX = g++-7
}
include(clang-gcc-common-switches.pri)