@@ -42,6 +42,9 @@ <h3 id="buildNix">On Unix-like Systems</h3>
42
42
< li > Note also that Python is needed for running the test suite.
43
43
Get it at: < a href ="http://www.python.org/download ">
44
44
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 >
45
48
</ ul >
46
49
47
50
< li > Checkout LLVM:
@@ -75,17 +78,21 @@ <h3 id="buildNix">On Unix-like Systems</h3>
75
78
</ li >
76
79
< li > Build LLVM and Clang:
77
80
< 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 >
80
82
< li > < tt > cd build</ tt > </ li >
81
- < li > < tt > ../llvm/configure </ tt > </ li >
83
+ < li > < tt > cmake -G "Unix Makefiles" ../llvm</ tt > </ li >
82
84
< li > < tt > make</ tt > </ li >
83
85
< 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 >
89
96
</ ul >
90
97
</ li >
91
98
0 commit comments