[PATCH] gprof needs symbols

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] gprof needs symbols

Benoit Boissinot-4
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
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] gprof needs symbols

Reid Spencer-2
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
> [hidden email]         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev