Skip to content

Commit cc2c42e

Browse files
authored
Work around Windows build failure due to SwiftPM regression. (#816)
Works around a link-time bug in SwiftPM that appears to have been introduced in swiftlang/swift-package-manager#8049. Works around swiftlang/swift-package-manager#8111 until swiftlang/swift-package-manager#8112 is in the build. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 51805c4 commit cc2c42e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Tests/TestingTests/ABIEntryPointTests.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ struct ABIEntryPointTests {
129129
passing arguments: __CommandLineArguments_v0,
130130
recordHandler: @escaping @Sendable (_ recordJSON: UnsafeRawBufferPointer) -> Void = { _ in }
131131
) async throws -> Bool {
132+
#if !(!SWT_FIXED_SWIFTPM_8111 && os(Windows))
132133
#if !os(Linux) && !os(FreeBSD) && !os(Android) && !SWT_NO_DYNAMIC_LINKING
133134
// Get the ABI entry point by dynamically looking it up at runtime.
134135
//
@@ -142,6 +143,7 @@ struct ABIEntryPointTests {
142143
}
143144
)
144145
}
146+
#endif
145147
#endif
146148
let abiEntryPoint = unsafeBitCast(abiv0_getEntryPoint(), to: ABIv0.EntryPoint.self)
147149

0 commit comments

Comments
 (0)