Skip to content

Commit 81c95f2

Browse files
author
git apple-llvm automerger
committed
Merge commit '07022e6cf9b5' from llvm.org/main into next
2 parents f1e4b6a + 07022e6 commit 81c95f2

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

llvm/docs/CMake.rst

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,25 @@ Compiler/Platform-specific topics
10661066

10671067
Notes for specific compilers and/or platforms.
10681068

1069-
Microsoft Visual C++
1070-
--------------------
1069+
Windows
1070+
-------
10711071

10721072
**LLVM_COMPILER_JOBS**:STRING
10731073
Specifies the maximum number of parallel compiler jobs to use per project
10741074
when building with msbuild or Visual Studio. Only supported for the Visual
10751075
Studio 2010 CMake generator. 0 means use all processors. Default is 0.
1076+
1077+
**CMAKE_MT**:STRING
1078+
When compiling with clang-cl, recent CMake versions will default to selecting
1079+
`llvm-mt` as the Manifest Tool instead of Microsoft's `mt.exe`. This will
1080+
often cause errors like:
1081+
1082+
.. code-block:: console
1083+
1084+
-- Check for working C compiler: [...]clang-cl.exe - broken
1085+
[...]
1086+
MT: command [...] failed (exit code 0x1) with the following output:
1087+
llvm-mt: error: no libxml2
1088+
ninja: build stopped: subcommand failed.
1089+
1090+
To work around this error, set `CMAKE_MT=mt`.

0 commit comments

Comments
 (0)