[Development] bug: qmake ignores CMAKE_CC and CMAKE_CXX while building Qt 5.3.2???

Thiago Macieira thiago.macieira at intel.com
Mon Mar 23 14:53:19 CET 2015


On Monday 23 March 2015 10:08:02 René J.V. Bertin wrote:
> On Sunday March 22 2015 23:18:17 Thiago Macieira wrote:
> >The point is that we extract QMAKE_CC and QMAKE_CXX from the mkspec so that
> >we can build qmake.
> 
> Just to be clear: *my* point is that on OS X those variables are basically
> ignored during a Qt build.

Which part of a Qt build? The build of:
 - qmake
 - a host library or of libQtBootstrap.a
 - a target library

Also, since you're on OS X, why does the build think you're cross-compiling? 
Did you pass different -platform and -xplatform switches? Or am I mis-
interpreting the situation?

> *) 1 probable bug: one of the geoclue files does `value = new GValue; *value
> = GVALUE_INIT;`. Apparently that passes Apple's clang and gcc, despite the
> explicit warning above the GVALUE_INIT macro definition that it cannot be
> used to initialise variables except when they're being declared. Stock
> clang-3.5 apparently agrees, so I had to do
> `memset(value,0,sizeof(GValue))`.

It's valid C++11, though it's not valid C++98.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Development mailing list