From 65451f15493a16a541d82f0591ba27506f2793b1 Mon Sep 17 00:00:00 2001
From: Howard Hinnant <atomic>.
libc++ is currently dependent upon a separate library for the low-level - ABI compatibility with gcc. As a workaround it can be linked against - gcc's libstdc++, or on Mac OS X - this library.
-Here is a by-chapter breakdown of what is passing tests and what isn't. This chart is currently based on testing against g++-4.4.0 with -std=c++0x.
@@ -138,8 +133,42 @@svn co http://llvm.org/svn/llvm-project/libcxx/trunk libcxxcd libcxx/lib./builditTo build on Mac OS X 10.6, you need a helper library and header + found here. + cp cxxabi.h to /usr/include, and cp libc++abi.dylib to /usr/lib. +
+ +
+ Next: +
+ +cd libcxx/libexport TRIPLE=-apple-./buildit+ That should result in a libc++.1.dylib. To install it I like to use links + instead of copying, but either should work: +
+ +cd /usr/libsudo ln -sf path-to-libcxx/lib/libc++.1.dylib libc++.dylibcd /usr/include/c++sudo ln -sf path-to-libcxx/include v1+ To use with clang you can: +
+ +clang++ -stdlib=libc++ test.cppclang++ -std=c++0x -stdlib=libc++ test.cppTo run the libc++ test suit (recommended):