]> granicus.if.org Git - clang/commitdiff
Add instructions for building clang while building llvm.
authorEric Christopher <echristo@apple.com>
Fri, 8 Feb 2008 07:10:48 +0000 (07:10 +0000)
committerEric Christopher <echristo@apple.com>
Fri, 8 Feb 2008 07:10:48 +0000 (07:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46881 91177308-0d34-0410-b5e6-96231b3b80d8

www/get_started.html

index 47909aba63f0f10d3dcfef273ee8f2c146e8ba97..5576bc497ab0dca5537c24cb59abb6373532022e 100644 (file)
@@ -100,6 +100,18 @@ is:</p>
   </ul>
 </ol>
 
+<h3>Building clang while building llvm:</h3>
+   <p>Since you've checked out clang into the llvm source tree you can
+   build them all at once with a simple Makefile change. This moves
+   Step 1 above to Step 4.</p>
+  <ul>
+    <li><tt>cd llvm/tools</tt></li>
+    <li>then edit <tt>Makefile</tt> to have a clang target in <tt>PARALLEL_DIRS</tt>
+        just like <tt>llvm-config</tt></li>
+    <li>then just build llvm normally as above and clang will build at
+        the same time</li>
+  </ul>
+
 <p>Note that the C front-end uses LLVM, but does not depend on
   llvm-gcc.  If you encounter problems with building clang, make
   sure you have the latest SVN version of LLVM.  LLVM contains