[PATCH] D60130: gn build: Add build files for clangd xpc framework code

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 3 05:32:45 PDT 2019


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 =


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60130.193476.patch
Type: text/x-patch
Size: 999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190403/f74361d8/attachment.bin>


More information about the cfe-commits mailing list