summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Makefile.unittest
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/Makefile.unittest')
-rw-r--r--llvm/unittests/Makefile.unittest5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/Makefile.unittest b/llvm/unittests/Makefile.unittest
index 5832d6ac1fd..1c75e44d077 100644
--- a/llvm/unittests/Makefile.unittest
+++ b/llvm/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
OpenPOWER on IntegriCloud