diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-03-05 02:34:34 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-03-05 02:34:34 +0000 |
| commit | 545b1d9164b52d36e0eb637f36373f55beb5df06 (patch) | |
| tree | 5bf408073f2ee7ba09fd336e57e2755af2f5b1b2 /tools | |
| parent | 4497854a94c9d2f53e6e8005c60ab072059a3d9c (diff) | |
| download | external_llvm-545b1d9164b52d36e0eb637f36373f55beb5df06.zip external_llvm-545b1d9164b52d36e0eb637f36373f55beb5df06.tar.gz external_llvm-545b1d9164b52d36e0eb637f36373f55beb5df06.tar.bz2 | |
apparently if gold is around lto needs to be part of DIRS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@97780 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tools/Makefile b/tools/Makefile index 64179fd..86ba72d 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -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 |
