patch: fix build of libcxxabi with gcc

Nick Lewycky nlewycky at google.com
Wed Mar 4 16:38:53 PST 2015


The attached patch resolves a few issues building libcxxabi with gcc:

 - GCC doesn't support #pragma mark, only Apple GCC and clang. Wrap the
pragma mark's in #if 0 to make gcc ignore them but xcode still see them.
 - Wrap a bunch of "#pragma clang" lines in #ifdef __clang__.
 - Pacify gcc's -Wparenthesis in a case where it's quite reasonable.

Please review!

Nick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150304/bbc34802/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libcxxabi-gcc-1.patch
Type: text/x-patch
Size: 2326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150304/bbc34802/attachment.bin>


More information about the cfe-commits mailing list