From 02c429274a34888cfb4c13a0148ce749143879fb Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sat, 24 Apr 2021 15:16:49 -0700 Subject: [PATCH 1/3] swift-doc: load FoundationNetworking on non-Darwin platforms Invert the condition to not link against Foundation networking only on non-Darwin platforms. Every other platform uses swift-corelibs-foundation which provides a FoundationNetworking which must be linked against in order to have the networking functionality work. This repairs the fetch of the CSS for Windows hosts. --- Sources/swift-doc/Subcommands/Generate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/swift-doc/Subcommands/Generate.swift b/Sources/swift-doc/Subcommands/Generate.swift index 25a90d60..8e2093f7 100644 --- a/Sources/swift-doc/Subcommands/Generate.swift +++ b/Sources/swift-doc/Subcommands/Generate.swift @@ -5,7 +5,7 @@ import SwiftMarkup import SwiftSemantics import struct SwiftSemantics.Protocol -#if os(Linux) +#if !(os(iOS) || os(macOS) || os(tvOS) || os(watchOS)) import FoundationNetworking #endif From 5d70178627036b73081f06323be955c28dd51a78 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 26 Apr 2021 17:04:24 -0700 Subject: [PATCH 2/3] Update Sources/swift-doc/Subcommands/Generate.swift Co-authored-by: Mattt --- Sources/swift-doc/Subcommands/Generate.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/swift-doc/Subcommands/Generate.swift b/Sources/swift-doc/Subcommands/Generate.swift index 8e2093f7..189c69a2 100644 --- a/Sources/swift-doc/Subcommands/Generate.swift +++ b/Sources/swift-doc/Subcommands/Generate.swift @@ -5,7 +5,7 @@ import SwiftMarkup import SwiftSemantics import struct SwiftSemantics.Protocol -#if !(os(iOS) || os(macOS) || os(tvOS) || os(watchOS)) +#if canImport(FoundationNetworking) import FoundationNetworking #endif From 34d04a1f89048394f87bd599549477efc3feb08e Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Wed, 28 Apr 2021 08:14:32 -0700 Subject: [PATCH 3/3] Update Generate.swift