apparently if gold is around lto needs to be part of DIRS.
authorChris Lattner <sabre@nondot.org>
Fri, 5 Mar 2010 02:34:34 +0000 (02:34 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 5 Mar 2010 02:34:34 +0000 (02:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97780 91177308-0d34-0410-b5e6-96231b3b80d8

tools/Makefile

index 64179fd706a2ec9b47bd1bab6568da1d8db838d7..86ba72ddacc6a40a58fc576becc14da08ea5e46a 100644 (file)
@@ -37,10 +37,15 @@ include $(LEVEL)/Makefile.config
 ifeq ($(ENABLE_PIC),1)
   # No support for dynamic libraries on windows targets.
   ifneq ($(TARGET_OS), $(filter $(TARGET_OS), Cygwin MingW))
-    PARALLEL_DIRS += lto edis
-    # gold only builds if binutils is around.
+    PARALLEL_DIRS += edis
+    
+    # gold only builds if binutils is around.  It requires "lto" to build before
+    # it so it is added to DIRS.
     ifdef BINUTILS_INCDIR
       PARALLEL_DIRS += gold
+      DIRS += lto
+    else
+      PARALLEL_DIRS += lto
     endif
   endif
 endif