[LLVMdev] [PATCH] gprof needs symbols

Reid Spencer rspencer at reidspencer.com
Tue Jul 10 07:52:37 PDT 2007


Patch applied. Thanks, Benoit!

Reid.

On Tue, 2007-07-10 at 15:27 +0200, Benoit Boissinot wrote:
> I needed the following patch to be able to use gprof with profiled build.
> 
> regards,
> 
> Benoit
> 
> --- a/Makefile.rules	(revision 37946)
> +++ b/Makefile.rules	(working copy)
> @@ -212,6 +212,7 @@
>    CXX.Flags := $(OPTIMIZE_OPTION) -pg -g
>    C.Flags   := $(OPTIMIZE_OPTION) -pg -g
>    LD.Flags  := $(OPTIMIZE_OPTION) -pg -g
> +  KEEP_SYMBOLS := 1
>  else
>    ifeq ($(ENABLE_OPTIMIZED),1)
>      BuildMode := Release
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list