build: Fix ONLY_TOOLS to not build lto etc. unless specified.
authorDaniel Dunbar <daniel@zuster.org>
Thu, 16 Dec 2010 15:42:26 +0000 (15:42 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Thu, 16 Dec 2010 15:42:26 +0000 (15:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121969 91177308-0d34-0410-b5e6-96231b3b80d8

tools/Makefile

index 35f6a8b97c6db5c2030d5f6b02b1e91ec8d04f4c..5a39563bccafd98e8f1df649ed372faf0ee87158 100644 (file)
@@ -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)