[cfe-dev] How to just enable debugging in compiler
Larry Evans
cppljevans at suddenlink.net
Sat Dec 29 11:57:48 PST 2012
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 \
#
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
More information about the cfe-dev
mailing list