How to just enable debugging in compiler

I've tried to configure in a build_debug directory with:

#!/bin/bash
this_dir=`pwd`
$this_dir/../llvm.src/configure \
  --prefix=$this_dir/../install_debug \
  --enable-optimized=NO \
  --enable-assertions=YES \
  --enable-debug-runtime=YES \
  --enable-debug-symbols=YES \

I've tried to configure in a build_debug directory with:

#!/bin/bash
this_dir=`pwd`
$this_dir/../llvm.src/configure \
--prefix=$this_dir/../install_debug \
--enable-optimized=NO \
--enable-assertions=YES \
--enable-debug-runtime=YES \
--enable-debug-symbols=YES \
#

Don't know if it change anything, but I usually do that instead:

../llvm.src/configure \
--prefix=$this_dir/../install_debug \
--disable-optimized \
--enable-assertions \
--enable-debug-runtime \
--enable-debug-symbols \

then tried make with:

~/download/llvm/pre-releases/3.2/rc3/download/build_debug $ make -j 2
llvm[0]: Constructing LLVMBuild project information.
make[1]: Entering directory
`/home/evansl/download/llvm/pre-releases/3.2/rc3/download/build_debug/lib/Support'
llvm[1]: Compiling APFloat.cpp for Release+Debug build
.
.
.

So is Release+Debug the right directory. I really want the -g when
compiling clang because I want to use valgrind memcheck and
the valgrind site says debugging must be turned on.

Am I going about this right?

TIA.

-Larry

_______________________________________________
cfe-dev mailing list
cfe-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-- Jean-Daniel