[clang] c534835 - [www] Fix Ninja build instructions on Windows
Shivam Gupta via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 23 03:38:58 PDT 2021
Author: Frederik Seiffert
Date: 2021-10-23T16:09:04+05:30
New Revision: c5348355ee66fbfc97e0dbb0234398792c4b68d9
URL: https://github.com/llvm/llvm-project/commit/c5348355ee66fbfc97e0dbb0234398792c4b68d9
DIFF: https://github.com/llvm/llvm-project/commit/c5348355ee66fbfc97e0dbb0234398792c4b68d9.diff
LOG: [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
Added:
Modified:
clang/www/get_started.html
Removed:
################################################################################
diff --git a/clang/www/get_started.html b/clang/www/get_started.html
index 40a05d92fb491..bc9629d7e2ff2 100755
--- a/clang/www/get_started.html
+++ b/clang/www/get_started.html
@@ -206,7 +206,7 @@ <h3 id="buildWindowsNinja">Using Ninja alongside Visual Studio</h3>
<li><tt>set CC=cl</tt> (necessary to force CMake to choose MSVC over mingw GCC
if you have it installed)</li>
<li><tt>set CXX=cl</tt></li>
- <li><tt>cmake -GNinja ..\llvm</tt></li>
+ <li><tt>cmake -GNinja -DLLVM_ENABLE_PROJECTS=clang ..\llvm</tt></li>
<li><tt>ninja clang</tt> This will build just clang.</li>
<li><tt>ninja check-clang</tt> This will run the clang tests.</li>
</ol>
More information about the cfe-commits
mailing list