[clangd] Fix XPC after rCTE351280

llvm-svn: 351306
This commit is contained in:
Fangrui Song 2019-01-16 08:13:15 +00:00
parent 58bb0e47dc
commit 54762df8f6
1 changed files with 3 additions and 3 deletions

View File

@ -417,11 +417,11 @@ int main(int argc, char *argv[]) {
std::unique_ptr<Transport> TransportLayer;
if (getenv("CLANGD_AS_XPC_SERVICE")) {
#ifdef CLANGD_BUILD_XPC
#if CLANGD_BUILD_XPC
TransportLayer = newXPCTransport();
#else
errs() << "This clangd binary wasn't built with XPC support.\n";
return ErrorResultCode::CantRunAsXPCService;
llvm::errs() << "This clangd binary wasn't built with XPC support.\n";
return (int)ErrorResultCode::CantRunAsXPCService;
#endif
} else {
TransportLayer = newJSONTransport(