summaryrefslogtreecommitdiff
path: root/tools/Makefile
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-09-19 22:15:52 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-09-19 22:15:52 +0000
commit88fae0edcce84920ba7c5685c36f6bd6cfb9b86d (patch)
treec1956347a81b84b10b8310d7dbc7e28443d33c05 /tools/Makefile
parent617305a0eb086f34a1005c8be2af3eea4a2a715d (diff)
downloadllvm-88fae0edcce84920ba7c5685c36f6bd6cfb9b86d.tar.gz
llvm-88fae0edcce84920ba7c5685c36f6bd6cfb9b86d.tar.bz2
llvm-88fae0edcce84920ba7c5685c36f6bd6cfb9b86d.tar.xz
Fix LTO handling of module-level assembly (PR14152).
Patch by Tom Roeder! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191042 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/Makefile b/tools/Makefile
index b7375c9970..d3d4593a50 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -54,11 +54,10 @@ endif
ifndef ONLY_TOOLS
ifeq ($(ENABLE_PIC),1)
# gold only builds if binutils is around. It requires "lto" to build before
- # it so it is added to DIRS.
+ # it so it is added to DIRS. llvm-lto also requires lto
+ DIRS += lto llvm-lto
ifdef BINUTILS_INCDIR
- DIRS += lto gold
- else
- PARALLEL_DIRS += lto
+ DIRS += gold
endif
PARALLEL_DIRS += bugpoint-passes