Add easy way to enable purify support
authorChris Lattner <sabre@nondot.org>
Tue, 30 Oct 2001 20:24:08 +0000 (20:24 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 30 Oct 2001 20:24:08 +0000 (20:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1045 91177308-0d34-0410-b5e6-96231b3b80d8

Makefile.common
Makefile.rules

index 3c29a370334b14fd004fbdd4a91690d792c83779..921695c67d29add769fc8d966402b2eaa9256a94 100644 (file)
@@ -38,6 +38,9 @@ install ::
 BURG = /home/vadve/vadve/Research/DynOpt/Burg/burg
 BURG_OPTS = -I
 
+
+PURIFY = /usr/dcs/applications/purify/bin/purify -cache-dir="/home/vadve/lattner/purifycache" -chain-length="10" -messages=all
+
 #---------------------------------------------------------
 # Compilation options...
 #---------------------------------------------------------
@@ -58,6 +61,9 @@ CompileG = $(Compile) -g  -D_DEBUG
 CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnonnull-objects -freg-struct-return -fshort-enums
 
 # Link final executable
+
+# To enable purify, do it here:
+###Link     = $(PURIFY) $(CXX) $(Prof) -static
 Link     = $(CXX) $(Prof) 
 LinkG    = $(Link) -g  -L $(LEVEL)/lib/Debug
 LinkO    = $(Link) -O3 -L $(LEVEL)/lib/Release
index 3c29a370334b14fd004fbdd4a91690d792c83779..921695c67d29add769fc8d966402b2eaa9256a94 100644 (file)
@@ -38,6 +38,9 @@ install ::
 BURG = /home/vadve/vadve/Research/DynOpt/Burg/burg
 BURG_OPTS = -I
 
+
+PURIFY = /usr/dcs/applications/purify/bin/purify -cache-dir="/home/vadve/lattner/purifycache" -chain-length="10" -messages=all
+
 #---------------------------------------------------------
 # Compilation options...
 #---------------------------------------------------------
@@ -58,6 +61,9 @@ CompileG = $(Compile) -g  -D_DEBUG
 CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnonnull-objects -freg-struct-return -fshort-enums
 
 # Link final executable
+
+# To enable purify, do it here:
+###Link     = $(PURIFY) $(CXX) $(Prof) -static
 Link     = $(CXX) $(Prof) 
 LinkG    = $(Link) -g  -L $(LEVEL)/lib/Debug
 LinkO    = $(Link) -O3 -L $(LEVEL)/lib/Release