Skip to content

Commit c534835

Browse files
triplefxgupta
authored andcommitted
[www] Fix Ninja build instructions on Windows
The `clang` target used in the line below is only generated with `LLVM_ENABLE_PROJECTS=clang`. Without this change, running `ninja clang` will fail with: ``` ninja: error: unknown target 'clang', did you mean 'clean'? ``` Reviewed By: xgupta Differential Revision: https://reviews.llvm.org/D112257
1 parent ea9e9d6 commit c534835

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/www/get_started.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ <h3 id="buildWindowsNinja">Using Ninja alongside Visual Studio</h3>
206206
<li><tt>set CC=cl</tt> (necessary to force CMake to choose MSVC over mingw GCC
207207
if you have it installed)</li>
208208
<li><tt>set CXX=cl</tt></li>
209-
<li><tt>cmake -GNinja ..\llvm</tt></li>
209+
<li><tt>cmake -GNinja -DLLVM_ENABLE_PROJECTS=clang ..\llvm</tt></li>
210210
<li><tt>ninja clang</tt> This will build just clang.</li>
211211
<li><tt>ninja check-clang</tt> This will run the clang tests.</li>
212212
</ol>

0 commit comments

Comments
 (0)