From 12098539fe13adb02fbe86db61a565b0f894342f Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Mon, 29 May 2023 08:18:08 -0700 Subject: [PATCH] Model: enable concurrent rendering on Windows Assume that concurrent rendering on Windows is the proper thing to do. It is unclear why Linux (but not Android) uses serial rendering. This enables us to make progress with the Windows port. --- Sources/SwiftDocC/Model/Rendering/RenderContext.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftDocC/Model/Rendering/RenderContext.swift b/Sources/SwiftDocC/Model/Rendering/RenderContext.swift index dab96eb84d..f810cc27bd 100644 --- a/Sources/SwiftDocC/Model/Rendering/RenderContext.swift +++ b/Sources/SwiftDocC/Model/Rendering/RenderContext.swift @@ -61,8 +61,8 @@ public struct RenderContext { ) } - #if os(macOS) || os(iOS) || os(Android) - // Concurrently render content on macOS/iOS & Android + #if os(macOS) || os(iOS) || os(Android) || os(Windows) + // Concurrently render content on macOS/iOS, Windows & Android let results: [(reference: ResolvedTopicReference, content: RenderReferenceStore.TopicContent)] = references.concurrentPerform { reference, results in results.append((reference, renderContentFor(reference))) }