Skip to content

Commit ec0bff9

Browse files
committed
Recommend to use CMake on the Clang Getting Started page.
llvm-svn: 235402
1 parent a050112 commit ec0bff9

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

clang/www/get_started.html

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ <h3 id="buildNix">On Unix-like Systems</h3>
4242
<li>Note also that Python is needed for running the test suite.
4343
Get it at: <a href="http://www.python.org/download">
4444
http://www.python.org/download</a></li>
45+
<li>Standard build process uses CMake. Get it at:
46+
<a href="http://www.cmake.org/download">
47+
http://www.cmake.org/download</a></li>
4548
</ul>
4649

4750
<li>Checkout LLVM:
@@ -75,17 +78,21 @@ <h3 id="buildNix">On Unix-like Systems</h3>
7578
</li>
7679
<li>Build LLVM and Clang:
7780
<ul>
78-
<li><tt>mkdir build</tt> (for building without polluting the source dir)
79-
</li>
81+
<li><tt>mkdir build</tt> (in-tree build is not supported)</li>
8082
<li><tt>cd build</tt></li>
81-
<li><tt>../llvm/configure</tt></li>
83+
<li><tt>cmake -G "Unix Makefiles" ../llvm</tt></li>
8284
<li><tt>make</tt></li>
8385
<li>This builds both LLVM and Clang for debug mode.</li>
84-
<li>Note: For subsequent Clang development, you can just do make at the
85-
clang directory level.</li>
86-
<li>It is also possible to use CMake instead of the makefiles. With CMake
87-
it is possible to generate project files for several IDEs: Xcode, Eclipse
88-
CDT4, CodeBlocks, Qt-Creator (use the CodeBlocks generator), KDevelop3.</li>
86+
<li>Note: For subsequent Clang development, you can just run
87+
<tt>make clang</tt>.</li>
88+
<li>CMake allows you to generate project files for several IDEs: Xcode,
89+
Eclipse CDT4, CodeBlocks, Qt-Creator (use the CodeBlocks generator),
90+
KDevelop3. For more details see
91+
<a href="http://llvm.org/docs/CMake.html">Building LLVM with CMake</a>
92+
page.</li>
93+
<li>You can also build Clang with
94+
<a href="http://llvm.org/docs/BuildingLLVMWithAutotools.html">
95+
autotools</a>, but some features may be unavailable there.</li>
8996
</ul>
9097
</li>
9198

0 commit comments

Comments
 (0)