[Development] Qt 4.8 clang and libc++
Olivier Goffart
olivier at woboq.com
Mon Sep 3 08:27:43 CEST 2012
On Monday 03 September 2012 00:13:50 Thiago Macieira wrote:
> On segunda-feira, 3 de setembro de 2012 00.02.09, Olivier Goffart wrote:
> > On Sunday 02 September 2012 22:43:33 Laszlo Papp wrote:
> > > > It would be nice to have clang in the CI system.
> > >
> > > I had the impression, clang is already in there:
> > > http://testresults.qt-project.org/ci/QtBase_master_Integration/latest-su
> > > cc
> > > es s/ http://qt-project.org/wiki/CI_Configurations
> > >
> > > Laszlo
> >
> > Ah, right.
> > There seems to be something wrong in the C++11 detection.
> > In the log it says:
> > 9/2/12 6:59:04 PM EST: C++11 support .......... no
>
> No, there's nothing wrong. It's working perfectly.
>
> #include <utility>
> #if defined(__clang__) && !defined(_LIBCPP_VERSION)
> # error "C++11 with clang requires libc++ runtime"
> #endif
But why do we require libc++? What's wrong with using the standard library
from recent GCC?
The way to do the detection should be to include the relevant standard headers
and check they compile fine.
Else, libc++ should probably be installed on the CI machines.
--
Olivier
Woboq - Qt services and support - http://woboq.com
More information about the Development
mailing list