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 | 3f16c959e30b7e7ba8e4b8d597c313fbe457206d (patch) | |
tree | 6d3dd1d7750a0f36a1766407d09f5fa0a0c6a3ef /docs/tools | |
parent | 641b98b7b52e0067beaf3978f2a8721e5d16c111 (diff) |
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).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@113891 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tools')
-rw-r--r-- | docs/tools/clang.pod | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/tools/clang.pod b/docs/tools/clang.pod index 032efcfcab..8284d319e7 100644 --- a/docs/tools/clang.pod +++ b/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>. |