summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2019-02-15 17:31:41 +0100
committerMichael BrĂ¼ning <michael.bruning@qt.io>2019-02-15 17:32:05 +0000
commite9f3b5a7d1609a169a6b6339b7b8a3c0be191efb (patch)
tree3a08850bc0dbf782c9170bc7e2ccc754a662a1d9
parent94ed642c693f3f5d925f77ac881fa9ef5db0f951 (diff)
Use QMAKE_GCC_MAJOR_VERSION to check GCC version for extensions
At least on my system (Archlinux with a qt5.git super-build), QT_GCC_MAJOR_VERSION seems to be unset when the test is run, causing it to fail and extensions to be disabled (despite using GCC 8). Change-Id: I384c6ebbbbe7245f41d014cd2f7aeca2fec73073 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
-rw-r--r--configure.pri2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.pri b/configure.pri
index 46fec536a..8db31ddd3 100644
--- a/configure.pri
+++ b/configure.pri
@@ -314,6 +314,6 @@ defineTest(qtConfTest_hasThumbFlag) {
}
defineTest(qtConfTest_hasGcc6OrNewer) {
- greaterThan(QT_GCC_MAJOR_VERSION, 5):return(true)
+ greaterThan(QMAKE_GCC_MAJOR_VERSION, 5):return(true)
return(false)
}