summaryrefslogtreecommitdiff
path: root/docs/UsersManual.rst
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
commita5188963724cc242c724712ea598f1a1531f902c (patch)
tree4cb4521c2633706eae03ddd923cbf62c23cc984f /docs/UsersManual.rst
parent11e13801d8a25cea011c2a154380c371b6ddaaf6 (diff)
downloadclang-a5188963724cc242c724712ea598f1a1531f902c.tar.gz
clang-a5188963724cc242c724712ea598f1a1531f902c.tar.bz2
clang-a5188963724cc242c724712ea598f1a1531f902c.tar.xz
Document Clang's support for #pragma comment(lib/linker) with -fms-extensions
As suggested by Dmitri Gribenko. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181433 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/UsersManual.rst')
-rw-r--r--docs/UsersManual.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst
index 3dc07aba90..e881f15825 100644
--- a/docs/UsersManual.rst
+++ b/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: