From: Hans Wennborg Date: Thu, 1 Mar 2018 14:00:19 +0000 (+0000) Subject: UsersManual: beef up the clang-cl text a little X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=181ea762ad8c6e1dc8b454674d922ee7af84a914;p=clang UsersManual: beef up the clang-cl text a little git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@326434 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/UsersManual.rst b/docs/UsersManual.rst index 09e9f9e660..62b53998b5 100644 --- a/docs/UsersManual.rst +++ b/docs/UsersManual.rst @@ -2684,10 +2684,20 @@ compatibility with the Visual C++ compiler, cl.exe. To enable clang-cl to find system headers, libraries, and the linker when run from the command-line, it should be executed inside a Visual Studio Native Tools Command Prompt or a regular Command Prompt where the environment has been set -up using e.g. `vcvars32.bat `_. +up using e.g. `vcvarsall.bat `_. + +clang-cl can also be used from inside Visual Studio by selecting the LLVM +Platform Toolset. The toolset is installed by the LLVM installer, which can be +downloaded from the `LLVM release `_ or +`snapshot build `_ web pages. To use the toolset, +select a project in Solution Explorer, open its Property Page (Alt+F7), and in +the "General" section of "Configuration Properties" change "Platform Toolset" +to e.g. LLVM-vs2014. + +To use the toolset with MSBuild directly, invoke it with e.g. +``/p:PlatformToolset=LLVM-vs2014``. This allows trying out the clang-cl +toolchain without modifying your project files. -clang-cl can also be used from inside Visual Studio by using an LLVM Platform -Toolset. Command-Line Options --------------------