diff --git a/www/index.html b/www/index.html index 3c7bc9d7..200ad5f5 100644 --- a/www/index.html +++ b/www/index.html @@ -139,20 +139,13 @@
- On Mac OS 10.7 (Lion), the easiest way to get this library is to install
+ On Mac OS 10.7 (Lion) and later, the easiest way to get this library is to install
Xcode 4.2 or later. However if you want to install tip-of-trunk from here
(getting the bleeding edge), read on. However, be warned that Mac OS
10.7 will not boot without a valid copy of libc++.1.dylib
in
/usr/lib
.
To build on Mac OS X 10.6 (Snow Leopard), you need a helper library and header - found here. - cp cxxabi.h to /usr/include, and cp libc++abi.dylib to /usr/lib. On Mac OS - X 10.7 (Lion) and later, this helper library and header are already installed - for you. -
-
Next:
@@ -160,25 +153,18 @@cd libcxx/lib
export TRIPLE=-apple-
export MACOSX_DEPLOYMENT_TARGET=10.6
./buildit
ln -sf libc++.1.dylib libc++.dylib
- That should result in a libc++.1.dylib. To install it I like to use links - instead of copying, but either should work: + That should result in a libc++.1.dylib and libc++.dylib. The safest thing + to do is to use it from where your libcxx is installed instead of replacing + these in your Mac OS.
-cd /usr/lib
sudo ln -sf path-to-libcxx/lib/libc++.1.dylib libc++.1.dylib
sudo ln -sf libc++.1.dylib libc++.dylib
cd /usr/include/c++
sudo ln -sf path-to-libcxx/include v1
- To use with clang you can: + To use your system-installed libc++ with clang you can:
clang++ -std=c++11 -stdlib=libc++ test.cpp
+ To use your tip-of-trunk libc++ on Mac OS with clang you can: +
+ +export DYLD_LIBRARY_PATH=<path-to-libcxx>/lib
+ clang++ -std=c++11 -stdlib=libc++ -nostdinc++
+ -I<path-to-libcxx>/include -L<path-to-libcxx>/lib
+ test.cpp
To run the libc++ test suite (recommended):
cd libcxx/test
./testit
-export OPTIONS="-std=c++11 -stdlib=libc++ -U__STRICT_ANSI__ -D__STDC_FORMAT_MACROS"-
testit
uses
+ with export OPTIONS="whatever you need"