[cfe-dev] [PATCH] Added support to libc++ for GCC 4.3, GCC 4.5, and most recent head of Clang.
Douglas Gregor
dgregor at apple.com
Fri Aug 6 13:59:18 PDT 2010
On Aug 6, 2010, at 6:46 PM, Jesse Towner wrote:
> Okay, please disregard the original patch, there were some bugs that
> came up when I ran the test suite on OS X with GCC 4.2.1. This patch
> should take care of them.
>
> Just to recap, I've tested it now on GCC 4.3.4, GCC 4.4.3, GCC 4.5.1,
> GCC 4.6 (head), and Clang/LLVM 2.8 (head) with and without-std=c++0x on
> Ubuntu 10.04 x86-64; GCC 4.2.1 and Clang/LLVM 2.8 (head) on OSX 10.6.4
> (both i386/x86-64); and GCC 4.2.1 on iOS 4.0.1 (both ARMv6/ARMv7).
Very cool. Thanks for working on this!
> I had to add an additional tweak to the cmath header for OSX when
> building with Clang with -std=c++0x, as that flag disables the GNU
> extensions mode and defines __STRICT_ANSI__, and the current math.h
> headers with OSX/iOS (Xcode 3.2.3) don't bring in a number of the C99
> math functions when __STRICT_ANSI__ is defined.
Use -std=gnu++0x to get C++0x with GNU extensions. Of course, C++0x mode doesn't do much in Clang... yet.
- Doug
More information about the cfe-dev
mailing list