diff options
Diffstat (limited to 'llvm/test/lit.cfg.py')
-rw-r--r-- | llvm/test/lit.cfg.py | 5 |
1 files changed, 4 insertions, 1 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( |