From 795ab9b06d24fea3f1022e659536a3d0015585b5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Sat, 27 Nov 2010 06:59:16 +0000 Subject: [PATCH] build/Makefiles: Don't build unittests when ONLY_TOOLS is set. llvm-svn: 120196 --- llvm/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/llvm/Makefile b/llvm/Makefile index 3c6b953eb9ff..abaacb49b7c5 100644 --- a/llvm/Makefile +++ b/llvm/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