summaryrefslogtreecommitdiff
path: root/unittests/Makefile.unittest
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2009-04-01 00:35:00 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2009-04-01 00:35:00 +0000
commitb0426e86af15d2ff419d2dc9bfefa573f3dfe29c (patch)
tree540c45087297ca81f29ef4dbbbc9a18b06fc8f13 /unittests/Makefile.unittest
parentd485e885f04eaaafc9c0ce2555c6bd853b7c18a3 (diff)
include Makefile.common before using $(BuildMode) to get its definition
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68167 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/Makefile.unittest')
-rw-r--r--unittests/Makefile.unittest5
1 files changed, 2 insertions, 3 deletions
diff --git a/unittests/Makefile.unittest b/unittests/Makefile.unittest
index 5832d6ac1fd..1c75e44d077 100644
--- a/unittests/Makefile.unittest
+++ b/unittests/Makefile.unittest
@@ -14,11 +14,10 @@
# Set up variables for building a unit test.
ifdef TESTNAME
-LLVMUnitTestDir := $(LLVM_OBJ_ROOT)/$(BuildMode)/unittests
-LLVMUnitTestExe := $(LLVMUnitTestDir)/$(TESTNAME)Tests$(EXEEXT)
-
include $(LEVEL)/Makefile.common
+LLVMUnitTestExe = $(BuildMode)/$(TESTNAME)Tests$(EXEEXT)
+
CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include/
CPP.Flags += -Wno-variadic-macros
LIBS += -lGoogleTest -lUnitTestMain