Skip to content

Commit

Permalink
include Makefile.common before using $(BuildMode) to get its definition
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68167 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
mbrukman committed Apr 1, 2009
1 parent d485e88 commit b0426e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions unittests/Makefile.unittest
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0426e8

Please sign in to comment.