This revision was automatically updated to reflect the committed changes. Closed by commit rCTE357574: gn build: Add build files for clangd xpc framework code (authored by nico, committed by ). Herald added a project: clang.
Changed prior to commit: https://reviews.llvm.org/D60130?vs=193313&id=193476#toc Repository: rCTE Clang Tools Extra CHANGES SINCE LAST ACTION https://reviews.llvm.org/D60130/new/ https://reviews.llvm.org/D60130 Files: clangd/xpc/framework/CMakeLists.txt clangd/xpc/test-client/ClangdXPCTestClient.cpp 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 =
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 =
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits