From 75bc2250ca44640737bbfccd553ba0198ef5e8c7 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Mon, 27 Apr 2009 11:21:35 +0000 Subject: [PATCH] Fix some confusion in the Ada f-e build instructions between building without optimization and building with checking. llvm-svn: 70205 --- llvm/docs/GCCFEBuildInstrs.html | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/llvm/docs/GCCFEBuildInstrs.html b/llvm/docs/GCCFEBuildInstrs.html index cc0d584cecba..262c16783947 100644 --- a/llvm/docs/GCCFEBuildInstrs.html +++ b/llvm/docs/GCCFEBuildInstrs.html @@ -157,29 +157,32 @@ cd llvm-objects
  • Configure LLVM (here it is configured to install into /usr/local):

    -../llvm/configure --prefix=/usr/local
    +../llvm/configure --prefix=/usr/local --enable-optimized --enable-assertions
     

    If you have a multi-compiler setup and the C++ compiler is not the default, then you can configure like this:

    -CXX=PATH_TO_C++_COMPILER ../llvm/configure --prefix=/usr/local
    +CXX=PATH_TO_C++_COMPILER ../llvm/configure --prefix=/usr/local --enable-optimized --enable-assertions
     
    + +

    To compile without checking (not recommended), replace + --enable-assertions with --disable-assertions.

    +
  • -
  • Build LLVM with checking enabled (use ENABLE_OPTIMIZED=1 to - build without checking):

    +
  • Build LLVM:

    -make ENABLE_OPTIMIZED=0
    +make
     
  • Install LLVM (optional):

    -make ENABLE_OPTIMIZED=0 install
    +make install
     
  • @@ -195,7 +198,8 @@ cd llvm-gcc-4.2-objects
  • Configure llvm-gcc (here it is configured to install into /usr/local). The --enable-checking flag turns on sanity checks inside the compiler. - If you omit it then LLVM should be built with make ENABLE_OPTIMIZED=1. + To turn off these checks (not recommended), replace --enable-checking + with --disable-checking. Additional languages can be appended to the --enable-languages switch, for example --enable-languages=ada,c,c++.