Index: www/index.html =================================================================== --- www/index.html +++ www/index.html @@ -103,13 +103,20 @@

Platform Support

-

libc++ is known to work on the following platforms, using g++-4.2 and - clang (lack of C++11 language support disables some functionality).

+

+ libc++ is known to work on the following platforms, using g++-4.2 and + clang (lack of C++11 language support disables some functionality). Note + that functionality provided by <atomic> is only functional with + clang. +

- +

Current Status

@@ -134,6 +141,14 @@

First please review our Developer's Policy. +

+ 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 check out the code, use:

- 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. + Note that for an in-tree build, you should check out libcxx to + llvm/projects.

- Next: + The following instructions are for building libc++ on FreeBSD, Linux, or Mac + using libc++abi as the C++ ABI + library. On Linux, it is also possible to use + libsupc++ or libcxxrt.

- + +

In-tree build:

- + +

Out-of-tree build:

+ + +

To run the tests:

+ + +

If you wish to run a subset of the test suite:

+ +

The above is currently quite inconvenient. Sorry! We're working on it!

+ +

More information on using LIT can be found + here. For more + general information about the LLVM testing infrastructure, see the + LLVM Testing Infrastructure + Guide +

+ +

+ Shared libraries for libc++ should now be present in llvm/build/lib. Note + that it is safest to use this from its current location rather than + replacing your system's libc++ (if it has one, if not, go right ahead). +

+

- 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. + Mac users, remember to be careful when replacing the system's libc++. + Your system will not be able to boot without a funcioning + libc++.

+ +

Notes

+ + +

+ Building libc++ with -fno-rtti is not supported. However + linking against it with -fno-rtti is supported. +

+ +

Send discussions to the + clang mailing list.

+ + +

Using libc++ in your programs

+ + + +

FreeBSD and Mac OS X

+ +

- To use your system-installed libc++ with clang you can: + To use your system-installed libc++ with clang you can:

- To use your tip-of-trunk libc++ on Mac OS with clang you can: + To use your tip-of-trunk libc++ on Mac OS with clang you can:

-

To run the libc++ test suite (recommended):

+ +

Linux

+ + +

+ You will need to keep the source tree of + libc++abi available on your build + machine and your copy of the libc++abi shared library must be placed where + your linker will find it. +

+ +

+ Unfortunately you can't simply run clang with "-stdlib=libc++" at this + point, as clang is set up to link for libc++ linked to libsupc++. To get + around this you'll have to set up your linker yourself (or patch clang). + For example: +

- -

Notes

- - -

-Building libc++ with -fno-rtti is not supported. However linking -against it with -fno-rtti is supported. -

+

+ Alternately, you could just add libc++abi to your libraries list, which in + most situations will give the same result: +

-

Send discussions to the - (clang mailing list).

+

Bug reports and patches

@@ -226,7 +316,7 @@

-

Build on Linux using CMake and libsupc++.

+

Build on Linux using CMake and libsupc++.

@@ -287,44 +377,7 @@

-

Build on Linux using CMake and libc++abi.

- - -

- You will need to keep the source tree of libc++abi - available on your build machine and your copy of the libc++abi shared library must - be placed where your linker will find it. -

- -

- We can now run CMake: -

-

- Unfortunately you can't simply run clang with "-stdlib=libc++" at this point, as - clang is set up to link for libc++ linked to libsupc++. To get around this - you'll have to set up your linker yourself (or patch clang). For example, -

- Alternately, you could just add libc++abi to your libraries list, which in most - situations will give the same result: - -

-

- - -

Build on Linux using CMake and libcxxrt.

+

Build on Linux using CMake and libcxxrt.