[LLVMdev] [PATCH] gprof needs symbols

Benoit Boissinot bboissin+llvm at gmail.com
Tue Jul 10 06:27:18 PDT 2007


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



More information about the llvm-dev mailing list