qt5base-lts/mkspecs/common
Bradley T. Hughes 42ebe71775 Define __GNUC__ to be 4 on Mac OS X
The QMAKE_COMPILER_DEFINES are used when running moc. In some cases, Qt
checks the __GNUC__ value to determine which version of GCC is being
used. In particular, the qtconcurrentfilter and qtconcurrentmap tests
fail to compile because moc ends up defining QT_NO_CONCURRENT_FILTER and
QT_NO_CONCURRENT_MAP since the condition __GNUC__ < 4 evaluates to true.

The Mac OS X development tools have not used gcc 3.x is a very long
time. The current version ships with llvm-gcc-4.2.1 and clang (which
also masquerades as gcc 4.2.1). Defining __GNUC__=4 makes sure that moc
preprocesses headers in the same way the compiler does.

Change-Id: Ie491d3f5b074fd1a509ffe6755f3308836817b6c
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
2011-11-14 23:42:17 +01:00
..
aix Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
c89 Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
mac Merge remote branch 'staging/master' into refactor 2011-05-24 15:22:06 +02:00
posix Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
wince Update licenseheader text in source files for qtbase Qt module 2011-05-24 12:34:08 +03:00
armcc.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
clang.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
g++-base.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
g++-macx.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
g++-unix.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
g++.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
gcc-base-macx.conf Define __GNUC__ to be 4 on Mac OS X 2011-11-14 23:42:17 +01:00
gcc-base-unix.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
gcc-base.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
linux.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
llvm.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
mac.conf Remove QMAKE_MACOS_DEPLOYMENT_TARGET. 2011-05-19 09:18:46 +02:00
qws.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00
unix.conf Initial import from the monolithic Qt. 2011-04-27 12:05:43 +02:00