From 9cdbdbea29ceef79f5af8341aab3b31e861057f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Stefan=20Gr=C3=A4nitz?= Date: Mon, 22 Mar 2021 11:41:59 +0100 Subject: [PATCH] [llvm-jitlink] Fix Windows build after 4a8161fe40cc --- llvm/tools/llvm-jitlink/llvm-jitlink.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp index 62303da..fb5fe42 100644 --- a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp +++ b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp @@ -677,6 +677,12 @@ static Error createTCPSocketError(Twine Details) { } static Expected connectTCPSocket(std::string Host, std::string PortStr) { +#ifndef LLVM_ON_UNIX + // FIXME: Add TCP support for Windows. + return make_error("-" + OutOfProcessExecutorConnect.ArgStr + + " not supported on non-unix platforms", + inconvertibleErrorCode()); +#else addrinfo *AI; addrinfo Hints{}; Hints.ai_family = AF_INET; @@ -711,6 +717,7 @@ static Expected connectTCPSocket(std::string Host, std::string PortStr) { return createTCPSocketError(std::strerror(errno)); return SockFD; +#endif } Expected> -- 2.7.4