r181433 - Document Clang's support for #pragma comment(lib/linker) with -fms-extensions

Reid Kleckner reid at kleckner.net
Wed May 8 07:40:51 PDT 2013


Author: rnk
Date: Wed May  8 09:40:51 2013
New Revision: 181433

URL: http://llvm.org/viewvc/llvm-project?rev=181433&view=rev
Log:
Document Clang's support for #pragma comment(lib/linker) with -fms-extensions

As suggested by Dmitri Gribenko.

Modified:
    cfe/trunk/docs/UsersManual.rst

Modified: cfe/trunk/docs/UsersManual.rst
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/docs/UsersManual.rst?rev=181433&r1=181432&r2=181433&view=diff
==============================================================================
--- cfe/trunk/docs/UsersManual.rst (original)
+++ cfe/trunk/docs/UsersManual.rst Wed May  8 09:40:51 2013
@@ -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:





More information about the cfe-commits mailing list