Skip to content

Commit 3c71f71

Browse files
authored
[docs] Remove Visual Studio 2017 references and bump VS 2019 to VS 2022 (#70759)
The docs say that Visual Studio 2019 16.7 or later is required to build clang but reference VS 2017. * Remove references to VS 2017 * Update instructions to use VS 2022, since that's the current version available for download from MS' website * The path to VS 2022 executables is `Program Files` instead of `Program Files (x86)`, as VS 2022 is 64-bit
1 parent 4476f72 commit 3c71f71

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

clang/www/get_started.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h3 id="buildWindows">Using Visual Studio</h3>
128128
project files. Get it from:
129129
<a href="https://cmake.org/download/">
130130
https://cmake.org/download/</a></li>
131-
<li><b>Visual Studio 2019 16.7 or later</b></li>
131+
<li><b>Visual Studio 2019 16.7 or later</b>. This tutorial assumes Visual Studio 2022.</li>
132132
<li><b>Python</b>. It is used to run the clang test suite. Get it from:
133133
<a href="https://www.python.org/download/">
134134
https://www.python.org/download/</a></li>
@@ -159,8 +159,8 @@ <h3 id="buildWindows">Using Visual Studio</h3>
159159
<li><tt>mkdir build</tt> (for building without polluting the source dir)</li>
160160
<li><tt>cd build</tt></li>
161161
<li>
162-
If you are using Visual Studio 2019:
163-
<tt>cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 16 2019" -A x64 -Thost=x64 ..\llvm</tt><br/>
162+
If you are using Visual Studio 2022:
163+
<tt>cmake -DLLVM_ENABLE_PROJECTS=clang -G "Visual Studio 17 2022" -A x64 -Thost=x64 ..\llvm</tt><br/>
164164
<tt>-Thost=x64</tt> is required, since the 32-bit linker will run out of memory.
165165
</li>
166166
<li>To generate x86 binaries instead of x64, pass <tt>-A Win32</tt>.</li>
@@ -198,12 +198,12 @@ <h3 id="buildWindowsNinja">Using Ninja alongside Visual Studio</h3>
198198
<li>If you open the start menu and search for "Command Prompt", you should
199199
see shortcuts created by Visual Studio to do this. To use native x64
200200
tools, choose the one titled "x64 Native Tools Command Prompt for VS
201-
2017".</li>
201+
2022".</li>
202202
<li> Alternatively, launch a regular <tt>cmd</tt> prompt and run the
203-
appropriate vcvarsall.bat incantation. To get the 2017 x64 tools, this
203+
appropriate vcvarsall.bat incantation. To get the 2022 x64 tools, this
204204
would be:<br/>
205-
<tt>"C:\Program Files (x86)\Microsoft Visual
206-
Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64</tt>
205+
<tt>"C:\Program Files\Microsoft Visual
206+
Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64</tt>
207207
</li>
208208
</ul>
209209
</li>

0 commit comments

Comments
 (0)