Commit e9f3b5a7 authored by Florian Bruhin's avatar Florian Bruhin Committed by Michael Brüning
Browse files

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: default avatarMichael Brüning <michael.bruning@qt.io>
parent 94ed642c
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -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)
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment