[PATCH] D27739: Disable libLTO tests when libLTO is not built
Derek Schuff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 14 08:30:51 PST 2016
This revision was automatically updated to reflect the committed changes.
Closed by commit rL289662: Disable libLTO tests when libLTO is not built (authored by dschuff).
Changed prior to commit:
https://reviews.llvm.org/D27739?vs=81385&id=81386#toc
Repository:
rL LLVM
https://reviews.llvm.org/D27739
Files:
llvm/trunk/test/lit.cfg
llvm/trunk/test/lit.site.cfg.in
Index: llvm/trunk/test/lit.cfg
===================================================================
--- llvm/trunk/test/lit.cfg
+++ llvm/trunk/test/lit.cfg
@@ -420,7 +420,7 @@
import subprocess
def have_ld_plugin_support():
- if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'LLVMgold.so')):
+ if not config.llvm_tool_llvm_shlib_build:
return False
ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE, env={'LANG': 'C'})
@@ -455,7 +455,7 @@
config.available_features.add('ld_plugin')
def have_ld64_plugin_support():
- if config.ld64_executable == '':
+ if (not config.llvm_tool_lto_build or config.ld64_executable == ''):
return False
ld_cmd = subprocess.Popen([config.ld64_executable, '-v'], stderr = subprocess.PIPE)
Index: llvm/trunk/test/lit.site.cfg.in
===================================================================
--- llvm/trunk/test/lit.site.cfg.in
+++ llvm/trunk/test/lit.site.cfg.in
@@ -15,6 +15,8 @@
config.python_executable = "@PYTHON_EXECUTABLE@"
config.gold_executable = "@GOLD_EXECUTABLE@"
config.ld64_executable = "@LD64_EXECUTABLE@"
+config.llvm_tool_llvm_shlib_build = "@LLVM_TOOL_LLVM_SHLIB_BUILD@"
+config.llvm_tool_lto_build = "@LLVM_TOOL_LTO_BUILD@"
config.ocamlfind_executable = "@OCAMLFIND@"
config.have_ocamlopt = "@HAVE_OCAMLOPT@"
config.have_ocaml_ounit = "@HAVE_OCAML_OUNIT@"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27739.81386.patch
Type: text/x-patch
Size: 1414 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161214/340714d9/attachment.bin>
More information about the llvm-commits
mailing list