From b1859438fc63fc608fa47d1da506d9fff72c3745 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Thu, 25 May 2023 14:24:50 +0100 Subject: [PATCH] Add @preconcurrency import Foundation for non-mac platforms --- Sources/SotoCodeGeneratorLib/Templates/shapes.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Sources/SotoCodeGeneratorLib/Templates/shapes.swift b/Sources/SotoCodeGeneratorLib/Templates/shapes.swift index f6e27a9..e70a116 100644 --- a/Sources/SotoCodeGeneratorLib/Templates/shapes.swift +++ b/Sources/SotoCodeGeneratorLib/Templates/shapes.swift @@ -17,7 +17,12 @@ extension Templates { {{%CONTENT_TYPE:TEXT}} {{>header}} + #if os(macOS) import Foundation + #else + // swift-corelibs-foundation hasn't been updated with Sendable conformances + @preconcurrency import Foundation + #endif import SotoCore extension {{name}} {