summaryrefslogtreecommitdiffstats
path: root/clang/docs
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2013-05-08 14:40:51 +0000
committerReid Kleckner <reid@kleckner.net>2013-05-08 14:40:51 +0000
commit78fb10f1947fbb69028913fc359240778f0b335e (patch)
tree52929cd45510341991c0a2fd693099b15a9265c3 /clang/docs
parentef494aa8570f1ac35f259a71d187b97ff12d62a6 (diff)
downloadbcm5719-llvm-78fb10f1947fbb69028913fc359240778f0b335e.tar.gz
bcm5719-llvm-78fb10f1947fbb69028913fc359240778f0b335e.zip
Document Clang's support for #pragma comment(lib/linker) with -fms-extensions
As suggested by Dmitri Gribenko. llvm-svn: 181433
Diffstat (limited to 'clang/docs')
-rw-r--r--clang/docs/UsersManual.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index 3dc07aba901..e881f158257 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -1202,6 +1202,12 @@ Windows targets.
record layout. GCC also contains support for this feature, however
where MSVC and GCC are incompatible clang follows the MSVC
definition.
+- clang supports the Microsoft ``#pragma comment(lib, "foo.lib")`` feature for
+ automatically linking against the specified library. Currently this feature
+ only works with the Visual C++ linker.
+- clang supports the Microsoft ``#pragma comment(linker, "/flag:foo")`` feature
+ for adding linker flags to COFF object files. The user is responsible for
+ ensuring that the linker understands the flags.
- clang defaults to C++11 for Windows targets.
.. _cxx:
OpenPOWER on IntegriCloud