mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[llvm-jitlink] Fix Windows build after 4a8161fe40cc
This commit is contained in:
parent
e59b5c1dd4
commit
32f9a2f66f
@ -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>>
|
||||
|
Loading…
x
Reference in New Issue
Block a user