Skip to content

Commit 9042721

Browse files
Merge pull request #916 from tshortli/fix-wasi-build
Fix the build for WASI
2 parents dfa0d24 + 893389f commit 9042721

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/Testing/Discovery.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,13 @@ struct TestContentRecord<T>: Sendable where T: ~Copyable {
8686
/// with interfaces such as `dlsym()` that expect such a pointer.
8787
#if SWT_NO_DYNAMIC_LINKING
8888
@available(*, unavailable, message: "Image addresses are not available on this platform.")
89-
#endif
89+
nonisolated(unsafe) var imageAddress: UnsafeRawPointer? {
90+
get { fatalError() }
91+
set { fatalError() }
92+
}
93+
#else
9094
nonisolated(unsafe) var imageAddress: UnsafeRawPointer?
95+
#endif
9196

9297
/// The underlying test content record loaded from a metadata section.
9398
private var _record: __TestContentRecord

0 commit comments

Comments
 (0)