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
This commit is contained in:
Misha Brukman 2009-04-01 00:35:00 +00:00
parent d485e885f0
commit b0426e86af

View File

@ -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