aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-11-27 06:59:16 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-11-27 06:59:16 +0000
commita1e1319992a64ffb57dd3a63e051daf6111e112b (patch)
tree26f5985eac1b9ae4e2ca19f2b2bcd83761d92634 /Makefile
parent95369163f58f06a6494ca9623184a8849ecf85f3 (diff)
downloadexternal_llvm-a1e1319992a64ffb57dd3a63e051daf6111e112b.zip
external_llvm-a1e1319992a64ffb57dd3a63e051daf6111e112b.tar.gz
external_llvm-a1e1319992a64ffb57dd3a63e051daf6111e112b.tar.bz2
build/Makefiles: Don't build unittests when ONLY_TOOLS is set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 3c6b953..abaacb4 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,11 @@ ifeq ($(MAKECMDGOALS),install)
OPTIONAL_DIRS := $(filter bindings, $(OPTIONAL_DIRS))
endif
+# Don't build unittests when ONLY_TOOLS is set.
+ifneq ($(ONLY_TOOLS),)
+ DIRS := $(filter-out unittests, $(DIRS))
+endif
+
# If we're cross-compiling, build the build-hosted tools first
ifeq ($(LLVM_CROSS_COMPILING),1)
all:: cross-compile-build-tools