diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 84b09ac..ca6fbea 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -10,7 +10,7 @@ on: jobs: tests: name: Test - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.12 + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.15 with: swift_flags: "-Xbuild-tools-swiftc -DSYSTEM_CI" enable_linux_checks: true @@ -65,7 +65,7 @@ jobs: build-abi-stable: name: Build ABI Stable - uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.12 + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@0.0.15 with: enable_linux_checks: false enable_macos_checks: true @@ -112,7 +112,7 @@ jobs: soundness: name: Soundness - uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.12 + uses: swiftlang/github-workflows/.github/workflows/soundness.yml@0.0.15 with: license_header_check_project_name: "Swift.org" # https://github.com/apple/swift-system/issues/224 diff --git a/Sources/System/Internals/Exports.swift b/Sources/System/Internals/Exports.swift index 088a325..6ce7d4d 100644 --- a/Sources/System/Internals/Exports.swift +++ b/Sources/System/Internals/Exports.swift @@ -184,7 +184,7 @@ extension String { // TLS #if os(Windows) internal typealias _PlatformTLSKey = DWORD -#elseif os(WASI) && (swift(<6.1) || !_runtime(_multithreaded)) +#elseif os(WASI) && !_runtime(_multithreaded) // Mock TLS storage for single-threaded WASI. // Carries no state of its own, and only used to index `sharedTLSStorage`. internal final class _PlatformTLSKey: @unchecked Sendable { @@ -214,7 +214,7 @@ internal func makeTLSKey() -> _PlatformTLSKey { fatalError("Unable to create key") } return raw - #elseif os(WASI) && (swift(<6.1) || !_runtime(_multithreaded)) + #elseif os(WASI) && !_runtime(_multithreaded) return _PlatformTLSKey() #else var raw = pthread_key_t() diff --git a/Sources/System/MachPort.swift b/Sources/System/MachPort.swift index 124ab0d..c501c82 100644 --- a/Sources/System/MachPort.swift +++ b/Sources/System/MachPort.swift @@ -9,7 +9,11 @@ #if SYSTEM_PACKAGE_DARWIN +#if canImport(Darwin, _version: 310) import Darwin.Mach +#else +@preconcurrency import Darwin.Mach +#endif @available(System 1.4.0, *) public protocol MachPortRight {}