diff --git a/test/lit.cfg b/test/lit.cfg index 2c7a9c45ebf..e0881ef2162 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -455,7 +455,7 @@ if have_ld_plugin_support(): config.available_features.add('ld_plugin') def have_ld64_plugin_support(): - if (not config.llvm_tool_lto_build or config.ld64_executable == ''): + if (config.llvm_tool_lto_build == 'OFF' or config.ld64_executable == ''): return False ld_cmd = subprocess.Popen([config.ld64_executable, '-v'], stderr = subprocess.PIPE)