From f1d34d3fea860bca2a312c831649a82ceb894363 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 31 Oct 2007 15:31:24 +0000 Subject: [PATCH] Added a few clarifying steps the the "building clang" section. llvm-svn: 43555 --- clang/www/get_involved.html | 40 +++++++++++++++++++++++++++---------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/clang/www/get_involved.html b/clang/www/get_involved.html index e191bfec2e0a..ef377ccab426 100644 --- a/clang/www/get_involved.html +++ b/clang/www/get_involved.html @@ -43,27 +43,47 @@ as well.
  • cfe-dev - This list is for everything else clang related.

    Building clang / working with the code 

    -If you would like to check out and build the project, the current scheme is:
    +If you would like to check out and build the project, the current scheme is:

    +
      -
    1. Check out llvm +
    2. Checkout and build LLVM + (latest + instructions for SVN access)
      • -
      • cd llvm/tools -
      • svn co http://llvm.org/svn/llvm-project/cfe/trunk clang +
      • svn co http://llvm.org/svn/llvm-project/llvm/trunk + llvm
      • +
      • cd llvm
      • +
      • ./configure; make
      • +
      +
    3. Checkout clang
    4. +
        +
      • From within the llvm directory (where you + built llvm):
      • +
      • cd llvm/tools +
      • svn co + http://llvm.org/svn/llvm-project/cfe/trunk clang
      • +
    5. Non-mac users: Paths to system header files are currently hard coded - into the tool; as a result, if clang can't find your system headers, + into clang; as a result, if clang can't find your system headers, please follow these instructions:
        -
      • 'touch empty.c; gcc -v empty.c -fsyntax-only' to get the path. +
      • 'touch empty.c; gcc -v empty.c -fsyntax-only' to get the path.
      • change clang/Driver/clang.cpp:606 to include that path
      -
    6. Build llvm +
    7. Build clang
      • -
      • cd clang -
      • make +
      • cd clang (assuming that you are in llvm/tools)
      • +
      • make
    -

    Note that the C front-end uses LLVM, but does not depend on llvm-gcc :)

    +
    + +

    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 + support libraries for clang that will be updated as well as + development on clang progresses.


    We will eventually integrate this better as a sub-project, but for now it builds a single tool named 'clang'.
    Once llvm is built in this way, you can compile C code.