Skip to content

Commit 3d08211

Browse files
authored
Fix OSSignpost.swift concurrency warning (#7829)
``` '@preconcurrency' attribute on module 'os' has no effect ```
1 parent 583c593 commit 3d08211

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/Basics/OSSignpost.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift open source project
44
//
5-
// Copyright (c) 2023 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2023-2024 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See http://swift.org/LICENSE.txt for license information
@@ -11,10 +11,12 @@
1111
//===----------------------------------------------------------------------===//
1212

1313
#if canImport(os)
14+
#if compiler(>=6.0)
15+
import os
16+
#else
1417
@preconcurrency import os
1518
#endif
1619

17-
#if canImport(os)
1820
extension os.OSLog {
1921
@usableFromInline
2022
static let swiftpm = os.OSLog(subsystem: "org.swift.swiftpm", category: "default")

0 commit comments

Comments
 (0)