diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-09-14 23:12:40 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-09-14 23:12:40 +0000 |
commit | 092b6fb1870946e7a82341ca92a87ac1f0b50ad9 (patch) | |
tree | b6a146203d62b31e2e6477b2dabffa6c51e336c7 /clang/docs/tools | |
parent | bf11f790534282b8b0e1ee21560be5265eaf8ede (diff) | |
download | bcm5719-llvm-092b6fb1870946e7a82341ca92a87ac1f0b50ad9.tar.gz bcm5719-llvm-092b6fb1870946e7a82341ca92a87ac1f0b50ad9.zip |
Driver: Add a -stdlib= argument which can be used to select the C++ standard
library to use.
- This is currently useful for testing libc++; you can now use 'clang++
-stdlib=libc++ t.cpp' to compile using it if installed.
- In the future could also be used to select other standard library choices if
alternatives become available (for example, to use an alternate C library).
llvm-svn: 113891
Diffstat (limited to 'clang/docs/tools')
-rw-r--r-- | clang/docs/tools/clang.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/tools/clang.pod b/clang/docs/tools/clang.pod index 032efcfcabc..8284d319e7b 100644 --- a/clang/docs/tools/clang.pod +++ b/clang/docs/tools/clang.pod @@ -14,6 +14,7 @@ B<clang> [B<-c>|B<-S>|B<-E>] B<-std=>I<standard> B<-g> B<-f>I<feature-option...> B<-m>I<machine-option...> B<-o> I<output-file> + B<-stdlib=>I<library> I<input-filenames> =head1 DESCRIPTION @@ -130,6 +131,11 @@ Treat subsequent input files as having type I<language>. Specify the language standard to compile for. +=item B<-stdlib>=I<language> + +Specify the C++ standard library to use; supported options are libstdc++ and +libc++. + =item B<-ansi> Same as B<-std=c89>. |