summaryrefslogtreecommitdiff
path: root/test/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 /test/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 'test/Makefile')
-rw-r--r--test/Makefile11
1 files changed, 0 insertions, 11 deletions
diff --git a/test/Makefile b/test/Makefile
index 33c8a0c1dc..fc85f24e7e 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -116,16 +116,6 @@ else
ENABLE_ASSERTIONS=1
endif
-# Derive whether or not LTO is enabled by checking the extra options.
-LTO_IS_ENABLED := 0
-ifneq ($(findstring -flto,$(CompileCommonOpts)),)
-LTO_IS_ENABLED := 1
-else
-ifneq ($(findstring -O4,$(CompileCommonOpts)),)
-LTO_IS_ENABLED := 1
-endif
-endif
-
lit.site.cfg: FORCE
@echo "Making LLVM 'lit.site.cfg' file..."
@$(ECHOPATH) s=@LLVM_HOST_TRIPLE@=$(HOST_TRIPLE)=g > lit.tmp
@@ -139,7 +129,6 @@ lit.site.cfg: FORCE
@$(ECHOPATH) s=@OCAMLOPT@=$(OCAMLOPT) -cc $(subst *,'\\\"',*$(subst =,"\\=",$(CXX_FOR_OCAMLOPT))*) -I $(LibDir)/ocaml=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_ASSERTIONS@=$(ENABLE_ASSERTIONS)=g >> lit.tmp
- @$(ECHOPATH) s=@LTO_IS_ENABLED@=$(LTO_IS_ENABLED)=g >> lit.tmp
@$(ECHOPATH) s=@TARGETS_TO_BUILD@=$(TARGETS_TO_BUILD)=g >> lit.tmp
@$(ECHOPATH) s=@LLVM_BINDINGS@=$(BINDINGS_TO_BUILD)=g >> lit.tmp
@$(ECHOPATH) s=@HOST_OS@=$(HOST_OS)=g >> lit.tmp