1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

[llvm-jitlink] Fix Windows build after 4a8161fe40cc

This commit is contained in:
Stefan Gränitz 2021-03-22 11:41:59 +01:00
parent e59b5c1dd4
commit 32f9a2f66f

View File

@ -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>>