[llvm-commits] [llvm] r97780 - /llvm/trunk/tools/Makefile

Chris Lattner sabre at nondot.org
Thu Mar 4 18:34:34 PST 2010


Author: lattner
Date: Thu Mar  4 20:34:34 2010
New Revision: 97780

URL: http://llvm.org/viewvc/llvm-project?rev=97780&view=rev
Log:
apparently if gold is around lto needs to be part of DIRS.

Modified:
    llvm/trunk/tools/Makefile

Modified: llvm/trunk/tools/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/Makefile?rev=97780&r1=97779&r2=97780&view=diff
==============================================================================
--- llvm/trunk/tools/Makefile (original)
+++ llvm/trunk/tools/Makefile Thu Mar  4 20:34:34 2010
@@ -37,10 +37,15 @@
 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





More information about the llvm-commits mailing list