From: Daniel Dunbar Date: Sat, 27 Nov 2010 06:59:16 +0000 (+0000) Subject: build/Makefiles: Don't build unittests when ONLY_TOOLS is set. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a1e1319992a64ffb57dd3a63e051daf6111e112b;p=oota-llvm.git 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 --- diff --git a/Makefile b/Makefile index 3c6b953eb9f..abaacb49b7c 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