File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -1066,10 +1066,25 @@ Compiler/Platform-specific topics
1066
1066
1067
1067
Notes for specific compilers and/or platforms.
1068
1068
1069
- Microsoft Visual C++
1070
- --------------------
1069
+ Windows
1070
+ -------
1071
1071
1072
1072
**LLVM_COMPILER_JOBS **:STRING
1073
1073
Specifies the maximum number of parallel compiler jobs to use per project
1074
1074
when building with msbuild or Visual Studio. Only supported for the Visual
1075
1075
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 `.
You can’t perform that action at this time.
0 commit comments