[llvm] 9cdbdbe - [llvm-jitlink] Fix Windows build after 4a8161fe40cc
Stefan Gränitz via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 03:42:25 PDT 2021
Author: Stefan Gränitz
Date: 2021-03-22T11:42:05+01:00
New Revision: 9cdbdbea29ceef79f5af8341aab3b31e861057f4
URL: https://github.com/llvm/llvm-project/commit/9cdbdbea29ceef79f5af8341aab3b31e861057f4
DIFF: https://github.com/llvm/llvm-project/commit/9cdbdbea29ceef79f5af8341aab3b31e861057f4.diff
LOG: [llvm-jitlink] Fix Windows build after 4a8161fe40cc
Added:
Modified:
llvm/tools/llvm-jitlink/llvm-jitlink.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-jitlink/llvm-jitlink.cpp b/llvm/tools/llvm-jitlink/llvm-jitlink.cpp
index 62303da0743a..fb5fe4231f08 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<int> connectTCPSocket(std::string Host, std::string PortStr) {
+#ifndef LLVM_ON_UNIX
+ // FIXME: Add TCP support for Windows.
+ return make_error<StringError>("-" + 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<int> connectTCPSocket(std::string Host, std::string PortStr) {
return createTCPSocketError(std::strerror(errno));
return SockFD;
+#endif
}
Expected<std::unique_ptr<TargetProcessControl>>
More information about the llvm-commits
mailing list