From: Duncan Sands Date: Mon, 27 Apr 2009 11:21:35 +0000 (+0000) Subject: Fix some confusion in the Ada f-e build instructions between X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f044cff0a4e18b8274c35d984436958b32b4f2e9;p=oota-llvm.git Fix some confusion in the Ada f-e build instructions between building without optimization and building with checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70205 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/GCCFEBuildInstrs.html b/docs/GCCFEBuildInstrs.html index cc0d584cecb..262c1678394 100644 --- a/docs/GCCFEBuildInstrs.html +++ b/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++.