[cfe-dev] How to just enable debugging in compiler

Jean-Daniel Dupas devlists at shadowlab.org
Sat Dec 29 13:03:29 PST 2012


Le 29 déc. 2012 à 20:57, Larry Evans <cppljevans at suddenlink.net> a écrit :

> 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 at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-- Jean-Daniel








More information about the cfe-dev mailing list