Skip to content

Commit

Permalink
* Allow purify builds to be enabled without hacking the makefile. Now…
Browse files Browse the repository at this point in the history
… you

  just have to run: make ENABLE_PURIFY=1
* Add command to the link line that makes the broken GCC 3.0 compiler work
  without affecting 2.95.3


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2116 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Apr 5, 2002
1 parent 2aac6bf commit 12604ed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnon
# Link final executable

# To enable purify, do it here:
###Link = $(PURIFY) $(CXX) $(Prof) -static
Link = $(CXX) $(Prof)
ifdef ENABLE_PURIFY
Link = $(PURIFY) $(CXX) $(Prof) -static
else
Link = LD_RUN_PATH=/usr/dcs/software/evaluation/encap/gcc-3.0.4/lib $(CXX) $(Prof)
endif
LinkG = $(Link) -g -L $(LEVEL)/lib/Debug
LinkO = $(Link) -O3 -L $(LEVEL)/lib/Release

Expand Down
7 changes: 5 additions & 2 deletions Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ CompileO = $(Compile) -O3 -DNDEBUG -finline-functions -felide-constructors -fnon
# Link final executable

# To enable purify, do it here:
###Link = $(PURIFY) $(CXX) $(Prof) -static
Link = $(CXX) $(Prof)
ifdef ENABLE_PURIFY
Link = $(PURIFY) $(CXX) $(Prof) -static
else
Link = LD_RUN_PATH=/usr/dcs/software/evaluation/encap/gcc-3.0.4/lib $(CXX) $(Prof)
endif
LinkG = $(Link) -g -L $(LEVEL)/lib/Debug
LinkO = $(Link) -O3 -L $(LEVEL)/lib/Release

Expand Down

0 comments on commit 12604ed

Please sign in to comment.