Index: clangd/xpc/framework/CMakeLists.txt =================================================================== --- clangd/xpc/framework/CMakeLists.txt +++ clangd/xpc/framework/CMakeLists.txt @@ -1,6 +1,7 @@ set(SOURCES - ClangdXPC.cpp) + ClangdXPC.cpp +) add_clang_library(ClangdXPCLib SHARED ${SOURCES} DEPENDS Index: clangd/xpc/test-client/ClangdXPCTestClient.cpp =================================================================== --- clangd/xpc/test-client/ClangdXPCTestClient.cpp +++ clangd/xpc/test-client/ClangdXPCTestClient.cpp @@ -49,8 +49,10 @@ // Open the ClangdXPC dylib in the framework. std::string LibPath = getLibraryPath(); void *dlHandle = dlopen(LibPath.c_str(), RTLD_LOCAL | RTLD_FIRST); - if (!dlHandle) + if (!dlHandle) { + llvm::errs() << "Failed to load framework from \'" << LibPath << "\'\n"; return 1; + } // Lookup the XPC service bundle name, and launch it. clangd_xpc_get_bundle_identifier_t clangd_xpc_get_bundle_identifier =