[cfe-dev] Help with compiling code with libcxx

Ashok Nalkund ashoknn at qualcomm.com
Fri Jun 15 16:50:57 PDT 2012



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?

Thanks again for the pointers.



More information about the cfe-dev mailing list