summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-10 15:04:36 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2013-05-10 16:16:15 +0200
commit216a19f9c117ed36f6b224125a7c5ef8015239be (patch)
treeaadc63e15ba1dd6804dd298797cd0ba7eb547189
parent7c61d77dc58831d3f47753c7454b66a788727e71 (diff)
downloadllvm-216a19f9c117ed36f6b224125a7c5ef8015239be.tar.gz
llvm-216a19f9c117ed36f6b224125a7c5ef8015239be.tar.bz2
llvm-216a19f9c117ed36f6b224125a7c5ef8015239be.tar.xz
[Embtk] Give ability to not build unittests via NO_UNITTESTS
Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org> (cherry picked from commit 2dde0d30145d774df263b13cbd142eddda15cc10)
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 7a1b190459..3b92901571 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,10 @@ ifneq ($(ONLY_TOOLS),)
DIRS := $(filter-out unittests, $(DIRS))
endif
+ifneq ($(NO_UNITTESTS),)
+ 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