From e0a7dddf3931be2901b48f4b1b5ad0fa74fae54f Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Fri, 31 Dec 2004 19:48:59 +0000 Subject: [PATCH] Describe both objdir==srcdir and objdir!=srcdir methods of building LLVM libraries and tools. Thanks to Henrik Bach for this suggestion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19204 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CFEBuildInstrs.html | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/docs/CFEBuildInstrs.html b/docs/CFEBuildInstrs.html index d895583d489..86d239659de 100644 --- a/docs/CFEBuildInstrs.html +++ b/docs/CFEBuildInstrs.html @@ -82,11 +82,7 @@ not with:

-
- Building under AIX -
- - +
Building under AIX

If you are building LLVM and the GCC front-end under AIX, do NOT use GNU Binutils. They are not stable under AIX and may produce incorrect and/or @@ -103,17 +99,26 @@ invalid code. Instead, use the system assembler and linker.

    -
  1. Configure and build the LLVM libraries and tools using:

    -
    +
  2. Configure and build the LLVM libraries and tools. There are two ways to +do this: either with objdir == srcdir or not. It is recommended +that srcdir not be the same as objdir:

    +
      +
    • With objdir != srcdir:
      + % cd objdir
      + % srcdir/configure --prefix=/some/path/you/can/install/to [options...]
      + % gmake tools-only
      +  
    • +
    • With objdir == srcdir:
        % cd llvm
        % ./configure --prefix=/some/path/you/can/install/to [options...]
        % gmake tools-only
      -
      -

      This will build all of the LLVM tools and libraries. The --prefix - option defaults to /usr/local (per configure standards) but unless you are a - system administrator, you probably won't be able to install LLVM there because - of permissions. Specify a path into which LLVM can be installed (e.g. - --prefix=/home/user/llvm).

      +
  3. + +

    This will build all of the LLVM tools and libraries. The --prefix +option defaults to /usr/local (per configure standards) but unless you are a +system administrator, you probably won't be able to install LLVM there because +of permissions. Specify a path into which LLVM can be installed (e.g. +--prefix=/home/user/llvm).

  4. Add the directory containing the tools to your PATH.