From 8be2ba9c43eb5dd3b33966557d72a07028447039 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Fri, 22 Sep 2023 11:02:12 -0700 Subject: [PATCH] Drop support for Swift 5.6 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clients who cannot upgrade their toolchain yet will continue to work with Swift Atomics 1.1. List of currently supported Swift releases: - Swift 5.9 release series - Swift 5.8 release series - Swift 5.7 release series We also aim to support building and using swift-atomics on developer snapshots of Swift’s active branches (release/5.10 and main). --- Package@swift-5.6.swift | 87 ----------------------------------------- Package@swift-5.7.swift | 2 +- Package@swift-5.8.swift | 2 +- 3 files changed, 2 insertions(+), 89 deletions(-) delete mode 100644 Package@swift-5.6.swift diff --git a/Package@swift-5.6.swift b/Package@swift-5.6.swift deleted file mode 100644 index f059d76..0000000 --- a/Package@swift-5.6.swift +++ /dev/null @@ -1,87 +0,0 @@ -// swift-tools-version:5.6 -//===----------------------------------------------------------------------===// -// -// This source file is part of the Swift.org open source project -// -// Copyright (c) 2020 - 2023 Apple Inc. and the Swift project authors -// Licensed under Apache License v2.0 with Runtime Library Exception -// -// See https://swift.org/LICENSE.txt for license information -// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors -// -//===----------------------------------------------------------------------===// - -import PackageDescription - -var _cSettings: [CSetting] = [] -var _swiftSettings: [SwiftSetting] = [] - -// Note: ATOMICS_NATIVE_BUILTINS works via the BuiltinModule language feature, -// so it is not usable in language versions below 5.9. - -let package = Package( - name: "swift-atomics", - products: [ - .library( - name: "Atomics", - targets: ["Atomics"]), - ], - targets: [ - .target( - name: "_AtomicsShims", - exclude: [ - "CMakeLists.txt" - ] - ), - .target( - name: "Atomics", - dependencies: ["_AtomicsShims"], - exclude: [ - "CMakeLists.txt", - "Conformances/AtomicBool.swift.gyb", - "Conformances/IntegerConformances.swift.gyb", - "Conformances/PointerConformances.swift.gyb", - "Primitives/Primitives.native.swift.gyb", - "Primitives/Primitives.shims.swift.gyb", - "Types/IntegerOperations.swift.gyb", - ], - cSettings: _cSettings, - swiftSettings: _swiftSettings - ), - .testTarget( - name: "AtomicsTests", - dependencies: ["Atomics"], - exclude: [ - "main.swift", - "Basics/BasicTests.gyb-template", - "Basics/BasicAtomicBoolTests.swift.gyb", - "Basics/BasicAtomicDoubleWordTests.swift.gyb", - "Basics/BasicAtomicInt16Tests.swift.gyb", - "Basics/BasicAtomicInt32Tests.swift.gyb", - "Basics/BasicAtomicInt64Tests.swift.gyb", - "Basics/BasicAtomicInt8Tests.swift.gyb", - "Basics/BasicAtomicIntTests.swift.gyb", - "Basics/BasicAtomicMutablePointerTests.swift.gyb", - "Basics/BasicAtomicMutableRawPointerTests.swift.gyb", - "Basics/BasicAtomicOptionalMutablePointerTests.swift.gyb", - "Basics/BasicAtomicOptionalMutableRawPointerTests.swift.gyb", - "Basics/BasicAtomicOptionalPointerTests.swift.gyb", - "Basics/BasicAtomicOptionalRawPointerTests.swift.gyb", - "Basics/BasicAtomicOptionalRawRepresentableTests.swift.gyb", - "Basics/BasicAtomicOptionalReferenceTests.swift.gyb", - "Basics/BasicAtomicOptionalUnmanagedTests.swift.gyb", - "Basics/BasicAtomicPointerTests.swift.gyb", - "Basics/BasicAtomicRawPointerTests.swift.gyb", - "Basics/BasicAtomicRawRepresentableTests.swift.gyb", - "Basics/BasicAtomicReferenceTests.swift.gyb", - "Basics/BasicAtomicUInt16Tests.swift.gyb", - "Basics/BasicAtomicUInt32Tests.swift.gyb", - "Basics/BasicAtomicUInt64Tests.swift.gyb", - "Basics/BasicAtomicUInt8Tests.swift.gyb", - "Basics/BasicAtomicUIntTests.swift.gyb", - "Basics/BasicAtomicUnmanagedTests.swift.gyb", - ], - swiftSettings: _swiftSettings - ), - ] -) diff --git a/Package@swift-5.7.swift b/Package@swift-5.7.swift index f059d76..e2b822e 100644 --- a/Package@swift-5.7.swift +++ b/Package@swift-5.7.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.6 +// swift-tools-version:5.7 //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project diff --git a/Package@swift-5.8.swift b/Package@swift-5.8.swift index f059d76..e2b822e 100644 --- a/Package@swift-5.8.swift +++ b/Package@swift-5.8.swift @@ -1,4 +1,4 @@ -// swift-tools-version:5.6 +// swift-tools-version:5.7 //===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project