Skip to content

Commit 1f92d3b

Browse files
committed
doc: Recommend clang-cl when building on Windows
1 parent 201b2b8 commit 1f92d3b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,12 @@ To cross compile for Android with [NDK](https://developer.android.com/ndk/guides
137137
138138
To build on Windows with Visual Studio, a proper [generator](https://cmake.org/cmake/help/latest/manual/cmake-generators.7.html#visual-studio-generators) must be specified for a new build tree.
139139
140+
Using clang-cl is recommended.
140141
The following example assumes using of Visual Studio 2022 and CMake v3.21+.
141142
142143
In "Developer Command Prompt for VS 2022":
143144
144-
>cmake -G "Visual Studio 17 2022" -A x64 -B build
145+
>cmake -B build -T ClangCL
145146
>cmake --build build --config RelWithDebInfo
146147
147148
Usage examples

0 commit comments

Comments
 (0)