<li><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">cfe-dev</a> - This list is for everything else clang related.\r
</ul>\r
<h3>Building clang / working with the code<a name="build"> </a></h3>\r
-If you would like to check out and build the project, the current scheme is:<br>\r
+If you would like to check out and build the project, the current scheme is:<br><br>\r
+\r
<ol>\r
- <li>Check out llvm\r
+ <li>Checkout and build LLVM\r
+ (<a href="http://www.llvm.org/docs/GettingStarted.html#checkout">latest\r
+ instructions for SVN access</a>)</li>\r
<ul>\r
- <li>cd llvm/tools\r
- <li>svn co http://llvm.org/svn/llvm-project/cfe/trunk clang\r
+ <li><tt>svn co http://llvm.org/svn/llvm-project/llvm/trunk\r
+ llvm</tt></li>\r
+ <li><tt>cd llvm</tt></li>\r
+ <li><tt>./configure; make</tt></li>\r
+ </ul>\r
+ <li>Checkout clang</li>\r
+ <ul>\r
+ <li>From within the <tt>llvm</tt> directory (where you\r
+ built llvm):</li>\r
+ <li><tt>cd llvm/tools</tt>\r
+ <li><tt>svn co\r
+ http://llvm.org/svn/llvm-project/cfe/trunk clang</tt></li>\r
+ \r
</ul>\r
<li>Non-mac users: Paths to system header files are currently hard coded\r
- into the tool; as a result, if clang can't find your system headers,\r
+ into clang; as a result, if clang can't find your system headers,\r
please follow these instructions:\r
<ul>\r
- <li>'touch empty.c; gcc -v empty.c -fsyntax-only' to get the path.\r
+ <li>'<tt>touch empty.c; gcc -v empty.c -fsyntax-only</tt>' to get the path.\r
<li>change clang/Driver/clang.cpp:606 to include that path\r
</ul>\r
- <li>Build llvm\r
+ <li>Build clang</li>\r
<ul>\r
- <li>cd clang\r
- <li>make\r
+ <li><tt>cd clang</tt> (assuming that you are in <tt>llvm/tools</tt>)</li>\r
+ <li><tt>make</tt></li>\r
</ul>\r
</ol>\r
-<p>Note that the C front-end uses LLVM, but does not depend on llvm-gcc :)</p>\r
+<br>\r
+\r
+<p>Note that the C front-end uses LLVM, but does not depend on\r
+ llvm-gcc. If you encounter problems with building clang, make\r
+ sure you have the latest SVN version of LLVM. LLVM contains\r
+ support libraries for clang that will be updated as well as\r
+ development on clang progresses.</p><br>\r
\r
<p>We will eventually integrate this better as a sub-project, but for now it builds a single tool named 'clang'.<br>\r
Once llvm is built in this way, you can compile C code.\r