diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 21:31:21 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-09-13 21:31:21 +0000 |
| commit | 6be903e18588fe1c4666b93605dd8fa270a5b785 (patch) | |
| tree | 2e2734d67247aad32cfc33f10a14e8897cacebb1 /llvm | |
| parent | 51e72707b7b1258bf2a7811ee6d1557d735a58c9 (diff) | |
| download | bcm5719-llvm-6be903e18588fe1c4666b93605dd8fa270a5b785.tar.gz bcm5719-llvm-6be903e18588fe1c4666b93605dd8fa270a5b785.zip | |
Move unittest driver to utils/unittest/UnitTestMain.
- This eliminates a race between building the unittests and linking the
UnitTestMain library.
llvm-svn: 81719
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/unittests/Makefile | 7 | ||||
| -rw-r--r-- | llvm/utils/unittest/Makefile | 2 | ||||
| -rw-r--r-- | llvm/utils/unittest/UnitTestMain/Makefile | 19 | ||||
| -rw-r--r-- | llvm/utils/unittest/UnitTestMain/TestMain.cpp (renamed from llvm/unittests/TestMain.cpp) | 2 |
4 files changed, 21 insertions, 9 deletions
diff --git a/llvm/unittests/Makefile b/llvm/unittests/Makefile index b743838b868..6f4dae1055c 100644 --- a/llvm/unittests/Makefile +++ b/llvm/unittests/Makefile @@ -9,13 +9,6 @@ LEVEL = .. -include $(LEVEL)/Makefile.config - -LIBRARYNAME = UnitTestMain -BUILD_ARCHIVE = 1 -CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include -CPP.Flags += -Wno-variadic-macros - PARALLEL_DIRS = ADT ExecutionEngine Support VMCore include $(LEVEL)/Makefile.common diff --git a/llvm/utils/unittest/Makefile b/llvm/utils/unittest/Makefile index 2f3e601b41b..6a09341832b 100644 --- a/llvm/utils/unittest/Makefile +++ b/llvm/utils/unittest/Makefile @@ -8,6 +8,6 @@ ##===----------------------------------------------------------------------===## LEVEL = ../.. -PARALLEL_DIRS = googletest +PARALLEL_DIRS = googletest UnitTestMain include $(LEVEL)/Makefile.common diff --git a/llvm/utils/unittest/UnitTestMain/Makefile b/llvm/utils/unittest/UnitTestMain/Makefile new file mode 100644 index 00000000000..07a74e3c0db --- /dev/null +++ b/llvm/utils/unittest/UnitTestMain/Makefile @@ -0,0 +1,19 @@ +##===- utils/unittest/UnitTestMain/Makefile ----------------*- Makefile -*-===## +# +# The LLVM Compiler Infrastructure +# +# This file is distributed under the University of Illinois Open Source +# License. See LICENSE.TXT for details. +# +##===----------------------------------------------------------------------===## + +LEVEL = ../../.. + +include $(LEVEL)/Makefile.config + +LIBRARYNAME = UnitTestMain +BUILD_ARCHIVE = 1 +CPP.Flags += -I$(LLVM_SRC_ROOT)/utils/unittest/googletest/include +CPP.Flags += -Wno-variadic-macros + +include $(LEVEL)/Makefile.common diff --git a/llvm/unittests/TestMain.cpp b/llvm/utils/unittest/UnitTestMain/TestMain.cpp index 095076b23ec..d97dca872ad 100644 --- a/llvm/unittests/TestMain.cpp +++ b/llvm/utils/unittest/UnitTestMain/TestMain.cpp @@ -1,4 +1,4 @@ -//===--- unittests/TestMain.cpp - unittest driver -------------------------===// +//===--- utils/unittest/UnitTestMain/TestMain.cpp - unittest driver -------===// // // The LLVM Compiler Infrastructure // |

