[cfe-dev] Help with compiling code with libcxx

Konstantin Tokarev annulen at yandex.ru
Sat Jun 16 07:35:59 PDT 2012

16.06.2012, 03:50, "Ashok Nalkund" <ashoknn at qualcomm.com>:
> On 6/15/2012 4:45 PM, Richard Smith wrote:
>>  On Fri, Jun 15, 2012 at 4:28 PM, Dmitri Gribenko<gribozavr at gmail.com>  wrote:
>>>  On Fri, Jun 15, 2012 at 4:22 PM, Ashok Nalkund<ashoknn at qualcomm.com>  wrote:
>>>>  Any info on compiling Qt (4.8.2) with clang&  libc++ ? I couldnt find
>>>>  replacements for things like "__gnu_cxx::__exchange_and_add()" being used in
>>>>  Qt.
>>>  Clang has C11 atomics:
>>>  http://clang.llvm.org/docs/LanguageExtensions.html#__c11_atomic
>>  It also supports the full set of GNU atomic builtins, if using
>>  _Atomic(...) types is impractical:
>>  http://gcc.gnu.org/onlinedocs/gcc-4.7.0/gcc/_005f_005fatomic-Builtins.html#_005f_005fatomic-Builtins
> If I understand correctly, you are suggesting modifying Qt code and
> replace the __gnu_cxx::__exchange_and_add() and similar calls with
> libc++ variants, right?

If you are about QtWebKit code, feel free to just disable GCC clause of #ifdef
You may loose performance of atomiv operations in WebKit though.


More information about the cfe-dev mailing list