apparently if gold is around lto needs to be part of DIRS.

llvm-svn: 97780
This commit is contained in:
Chris Lattner 2010-03-05 02:34:34 +00:00
parent ba9eb0bf2e
commit 5ec1b24f8f
1 changed files with 7 additions and 2 deletions

View 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