Added POOLFLAGS option to run pool allocation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7624 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Makefile.tests b/test/Makefile.tests
index bb2bb88..1c08aec 100644
--- a/test/Makefile.tests
+++ b/test/Makefile.tests
@@ -77,7 +77,16 @@
TRACELIBS := -L$(LEVEL)/test/Libraries/Output -linstr.$(ARCH)
endif
-LLCLIBS += -lm
+POOLFLAGS =
+DOPOOLALLOC =
+## If POOLALLOC is "yes", set the opt flag and the POOLLIBS varoab;e
+ifeq ($(POOLALLOC), yes)
+ POOLFLAGS += -poolalloc
+ DOPOOLALLOC = yes
+ POOLLIBS := -L$(LEVEL)/test/Libraries/Output
+endif
+
+LLCLIBS := $(LLCLIBS) -lm
clean::
$(RM) -f a.out core