Index: test/lit.cfg =================================================================== --- test/lit.cfg +++ test/lit.cfg @@ -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: test/lit.site.cfg.in =================================================================== --- test/lit.site.cfg.in +++ test/lit.site.cfg.in @@ -15,6 +15,7 @@ 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@"