Skip to content

Commit 9cdbdbe

Browse files
[llvm-jitlink] Fix Windows build after 4a8161f
1 parent cb3b5f0 commit 9cdbdbe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

llvm/tools/llvm-jitlink/llvm-jitlink.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,12 @@ static Error createTCPSocketError(Twine Details) {
677677
}
678678

679679
static Expected<int> connectTCPSocket(std::string Host, std::string PortStr) {
680+
#ifndef LLVM_ON_UNIX
681+
// FIXME: Add TCP support for Windows.
682+
return make_error<StringError>("-" + OutOfProcessExecutorConnect.ArgStr +
683+
" not supported on non-unix platforms",
684+
inconvertibleErrorCode());
685+
#else
680686
addrinfo *AI;
681687
addrinfo Hints{};
682688
Hints.ai_family = AF_INET;
@@ -711,6 +717,7 @@ static Expected<int> connectTCPSocket(std::string Host, std::string PortStr) {
711717
return createTCPSocketError(std::strerror(errno));
712718

713719
return SockFD;
720+
#endif
714721
}
715722

716723
Expected<std::unique_ptr<TargetProcessControl>>

0 commit comments

Comments
 (0)