summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-03-01 14:48:19 +0000
committerHans Wennborg <hans@hanshq.net>2018-03-01 14:48:19 +0000
commit1bab70109b9fa259f928fe30a8ad153db8f4ecbe (patch)
tree5458f5b02a9d7b747eea808a0106002f34d7401a
parent0a6b8b663068debc0c6ae11b1b2517c5d14ff7db (diff)
downloadbcm5719-llvm-1bab70109b9fa259f928fe30a8ad153db8f4ecbe.tar.gz
bcm5719-llvm-1bab70109b9fa259f928fe30a8ad153db8f4ecbe.zip
UsersManual: improve the clang-cl text some more
llvm-svn: 326438
-rw-r--r--clang/docs/UsersManual.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/clang/docs/UsersManual.rst b/clang/docs/UsersManual.rst
index 62b53998b53..f19aacc4e99 100644
--- a/clang/docs/UsersManual.rst
+++ b/clang/docs/UsersManual.rst
@@ -2698,6 +2698,23 @@ 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.
+It's also possible to point MSBuild at clang-cl without changing toolset by
+passing ``/p:CLToolPath=c:\llvm\bin /p:CLToolExe=clang-cl.exe``.
+
+When using CMake and the Visual Studio generators, the toolset can be set with the ``-T`` flag:
+
+ ::
+
+ cmake -G"Visual Studio 15 2017" -T LLVM-vs2014 ..
+
+When using CMake with the Ninja generator, set the ``CMAKE_C_COMPILER`` and
+``CMAKE_CXX_COMPILER`` variables to clang-cl:
+
+ ::
+
+ cmake -GNinja -DCMAKE_C_COMPILER="c:/Program Files (x86)/LLVM/bin/clang-cl.exe"
+ -DCMAKE_CXX_COMPILER="c:/Program Files (x86)/LLVM/bin/clang-cl.exe" ..
+
Command-Line Options
--------------------
OpenPOWER on IntegriCloud