Skip to content

Commit f3c9329

Browse files
authored
Disable snapshot types on Android. (#994)
Snapshot types are used by Xcode 16. They are not needed on non-Apple platforms. This PR disables them on Android by setting `SWT_NO_SNAPSHOT_TYPES`. ### 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 f1892c3 commit f3c9329

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ extension Array where Element == PackageDescription.SwiftSetting {
191191

192192
.define("SWT_NO_EXIT_TESTS", .when(platforms: [.iOS, .watchOS, .tvOS, .visionOS, .wasi, .android])),
193193
.define("SWT_NO_PROCESS_SPAWNING", .when(platforms: [.iOS, .watchOS, .tvOS, .visionOS, .wasi, .android])),
194-
.define("SWT_NO_SNAPSHOT_TYPES", .when(platforms: [.linux, .custom("freebsd"), .openbsd, .windows, .wasi])),
194+
.define("SWT_NO_SNAPSHOT_TYPES", .when(platforms: [.linux, .custom("freebsd"), .openbsd, .windows, .wasi, .android])),
195195
.define("SWT_NO_DYNAMIC_LINKING", .when(platforms: [.wasi])),
196196
.define("SWT_NO_PIPES", .when(platforms: [.wasi])),
197197
]
@@ -248,7 +248,7 @@ extension Array where Element == PackageDescription.CXXSetting {
248248
result += [
249249
.define("SWT_NO_EXIT_TESTS", .when(platforms: [.iOS, .watchOS, .tvOS, .visionOS, .wasi, .android])),
250250
.define("SWT_NO_PROCESS_SPAWNING", .when(platforms: [.iOS, .watchOS, .tvOS, .visionOS, .wasi, .android])),
251-
.define("SWT_NO_SNAPSHOT_TYPES", .when(platforms: [.linux, .custom("freebsd"), .openbsd, .windows, .wasi])),
251+
.define("SWT_NO_SNAPSHOT_TYPES", .when(platforms: [.linux, .custom("freebsd"), .openbsd, .windows, .wasi, .android])),
252252
.define("SWT_NO_DYNAMIC_LINKING", .when(platforms: [.wasi])),
253253
.define("SWT_NO_PIPES", .when(platforms: [.wasi])),
254254
]

0 commit comments

Comments
 (0)