summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-12-16 15:42:26 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-12-16 15:42:26 +0000
commitb8810a38865974ed41420ce85f21495e77990a80 (patch)
treeb353e63dd115e8a5bbb981c0794e156098e4f829 /tools/Makefile
parent7232b09619a1b05584d05ea67884b36602fa71bc (diff)
downloadllvm-b8810a38865974ed41420ce85f21495e77990a80.tar.gz
llvm-b8810a38865974ed41420ce85f21495e77990a80.tar.bz2
llvm-b8810a38865974ed41420ce85f21495e77990a80.tar.xz
build: Fix ONLY_TOOLS to not build lto etc. unless specified.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 35f6a8b97c..5a39563bcc 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -34,6 +34,7 @@ include $(LEVEL)/Makefile.config
# These libraries build as dynamic libraries (.dylib /.so), they can only be
# built if ENABLE_PIC is set.
+ifndef ONLY_TOOLS
ifeq ($(ENABLE_PIC),1)
# gold only builds if binutils is around. It requires "lto" to build before
# it so it is added to DIRS.
@@ -57,6 +58,7 @@ endif
ifdef LLVM_HAS_POLLY
PARALLEL_DIRS += polly
endif
+endif
# On Win32, loadable modules can be built with ENABLE_SHARED.
ifneq ($(ENABLE_SHARED),1)