Index: test/lit.cfg =================================================================== --- test/lit.cfg +++ test/lit.cfg @@ -455,7 +455,8 @@ config.available_features.add('ld_plugin') def have_ld64_plugin_support(): - if config.ld64_executable == '': + if (not os.path.exists(os.path.join(config.llvm_lib_dir, 'libLTO.dylib')) or + config.ld64_executable == ''): return False ld_cmd = subprocess.Popen([config.ld64_executable, '-v'], stderr = subprocess.PIPE)