summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/lit.cfg.py5
-rw-r--r--llvm/test/lit.site.cfg.py.in1
2 files changed, 4 insertions, 2 deletions
diff --git a/llvm/test/lit.cfg.py b/llvm/test/lit.cfg.py
index 3c154c5899e..4200dd57dc4 100644
--- a/llvm/test/lit.cfg.py
+++ b/llvm/test/lit.cfg.py
@@ -278,7 +278,10 @@ if have_ld_plugin_support():
def have_ld64_plugin_support():
- if not config.llvm_tool_lto_build or config.ld64_executable == '':
+ if not os.path.exists(os.path.join(config.llvm_shlib_dir, 'libLTO' + config.llvm_shlib_ext)):
+ return False
+
+ if config.ld64_executable == '':
return False
ld_cmd = subprocess.Popen(
diff --git a/llvm/test/lit.site.cfg.py.in b/llvm/test/lit.site.cfg.py.in
index 6592b3c450c..b8bfc1bd364 100644
--- a/llvm/test/lit.site.cfg.py.in
+++ b/llvm/test/lit.site.cfg.py.in
@@ -15,7 +15,6 @@ config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
config.python_executable = "@PYTHON_EXECUTABLE@"
config.gold_executable = "@GOLD_EXECUTABLE@"
config.ld64_executable = "@LD64_EXECUTABLE@"
-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@
OpenPOWER on IntegriCloud