Attempt to fix random build failures seen when doing highly
authorDuncan Sands <baldrick@free.fr>
Tue, 9 Mar 2010 09:03:21 +0000 (09:03 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 9 Mar 2010 09:03:21 +0000 (09:03 +0000)
parallel builds: the gold plugin fails to link because the lto
library is in the middle of being written out by the linker.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98054 91177308-0d34-0410-b5e6-96231b3b80d8

tools/Makefile

index 86ba72ddacc6a40a58fc576becc14da08ea5e46a..58130570d7aace5622698521406f6be43f80524e 100644 (file)
@@ -42,8 +42,7 @@ ifeq ($(ENABLE_PIC),1)
     # 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
+      DIRS += lto gold
     else
       PARALLEL_DIRS += lto
     endif