Commit Graph
37 Commits
Author SHA1 Message Date
Karoy Lorentey f37fe8e662 Define SwiftStdlib 6.4 with actual version numbers 2026-06-17 14:57:06 -07:00
Karoy Lorentey f196269e7f Define placeholder availability macro for SwiftStdlib 6.5 2026-05-07 16:16:34 -07:00
Nate Cook efdc1bbd96 Remove BorrowingSequence experimental feature flag
This prevents accidental usage of the experimental stdlib feature,
where the library's implementation is intended instead.
2026-03-27 10:56:44 -05:00
Karoy Lorentey 419e2f7df2 [ContainersPreview] Exhibit A in the case against prototyping things in the stdlib 😞 2026-03-26 17:14:45 -07:00
Karoy Lorentey e2b980a4cc SuppressedAssociatedTypes ⟹ SuppressedAssociatedTypesWithDefaults 2026-03-26 14:51:37 -07:00
Karoy Lorentey 11443c0531 Enforce uniform license headers 2026-03-07 10:26:28 -08:00
Karoy Lorentey 1c69635852 Add SPDX-License-Identifier tags 2026-03-05 19:39:24 -08:00
Karoy Lorentey d9b09ecde8 Update copyright dates 2026-03-05 19:39:20 -08:00
Karoy Lorentey 6ca3b59890 [manifest] Define SwiftStdlib 6.3 2026-02-27 18:05:24 -08:00
Karoy Lorentey bf9a7033a0 [BasicContainers] Add early drafts for RigidSet/RigidDictionary 2026-02-16 17:15:59 -08:00
Karoy Lorentey bb8d566833 Adopt package access modifier and get rid of gybbing 2025-09-29 11:56:14 -07:00
Karoy Lorentey 1dc2b7717f Revert "Don’t allow backdeployment of any Span types below the most recent Darwin OS releases"
This reverts commit 485e69bfb1.

# Conflicts:
#	CMakeLists.txt
2025-09-27 12:15:30 -07:00
Karoy Lorentey f8ce8fe58b [CMake] fix invalid comment syntax 2025-09-26 23:56:06 -07:00
Karoy Lorentey bdfaffbba6 Merge pull request #505 from Steelskin/fabrice/main-build-install-swift-libraries-arch-folder
build: Install libraries in an `arch` sub-folder
2025-09-26 23:51:16 -07:00
Karoy Lorentey 485e69bfb1 Don’t allow backdeployment of any Span types below the most recent Darwin OS releases
References to Span types trigger an issue where SwiftPM isn’t able to run command line executable targets or tests on older OSes.

Set the availability of everything that needs span types to the most recent Apple OS releases.

Hopefully we’ll be able to revert this once we figure out a better workaround.
2025-09-26 22:38:18 -07:00
Fabrice de Gans 16f8d5b6bf Make the arch subdir optional
* Add an option to use an arch sub-directory for installing libraries.
* Rename variables to be consistent with other CMake variables in the
  project.
* Remove PlatformInfo as it is no longer needed.
2025-08-29 15:10:34 -07:00
Karoy Lorentey d6dc7df494 Bump required toolchain to Swift 6.0
- Update minimum toolchain version to Swift 6.0.
- Add a separate package manifest for Swift 6.2+.
- Upgrade to Swift 6 language mode.
   - Except in _RopeModule, which has uncovered a language-mode related regression in debug builds.
- Define availability macros.
- Enable the Builtin module.
- For the 6.2+ manifest:
   - Add a new package trait called “UnstableContainersPreview”. This is not yet functional.
   - Enable experimental language features `Lifetimes` and `InoutLifetimeDependence`.
   - Stop supporting COLLECTIONS_SINGLE_MODULE in package builds.
- Update CMake & Xcode configurations to also assume Swift 6.2, reflecting the changes above.
2025-08-17 13:22:46 -07:00
Evan Wilde 83457e19c8 CMake: Remove duplicate platform info includes
It looks like something was merged in a funny way resulting in the
platform info module being included twice in the top-level CMakeLists
files. Removing one of them.
2025-06-11 16:42:06 -07:00
Karoy Lorentey 0f73f0ace7 Merge branch 'release/1.2'
# Conflicts:
#	.github/workflows/pull_request.yml
#	.swiftci/5_10_ubuntu2204
#	.swiftci/5_7_ubuntu2204
#	.swiftci/5_8_ubuntu2204
#	.swiftci/5_9_ubuntu2204
#	.swiftci/nightly_6_0_macos
#	.swiftci/nightly_6_0_ubuntu2204
#	.swiftci/nightly_main_macos
#	.swiftci/nightly_main_ubuntu2204
2025-05-20 11:13:32 -07:00
Evan Wilde 4467318e2f Use full module triple for swift modules
Install swiftmodules with the full module triple expected by the
compiler instead of attempting to compute the correct architecture name
in CMake.
2025-05-16 00:24:43 -07:00
Evan Wilde bb73c1cc4a Remove CMP0091 check
CMP0091 was added in CMake 3.15. The minimum version is CMake 3.16 so
we don't need to do the check anymore.
2025-05-16 00:21:50 -07:00
Evan Wilde a7fec81fc4 Use full module triple for swift modules
Install swiftmodules with the full module triple expected by the
compiler instead of attempting to compute the correct architecture name
in CMake.
2025-05-12 20:34:02 -07:00
Evan Wilde a9ff98fce6 Remove CMP0091 check
CMP0091 was added in CMake 3.15. The minimum version is CMake 3.16 so
we don't need to do the check anymore.
2025-05-12 20:33:56 -07:00
Fabrice de Gans e0021fbb75 [cmake] Install libraries in standard directories
Previously, libs were installed under `lib/swift/${os}`. They should be
installed in the default library directory for the relevant target
system.
In addition, swiftmodules were installed in the older layout format.
This changes to use the standard modern layout format for swiftmodules.
2025-02-03 13:16:49 -08:00
Alastair Houghton fec5a5a630 [Build] Use SWIFT_SYSTEM_NAME rather than just lowercasing.
Lowercasing `CMAKE_SYSTEM_NAME` to find the name Swift uses for a platform
is not guaranteed to work.  Instead, use the `SWIFT_SYSTEM_NAME` variable,
which lets us override the name when building the Static SDK for Linux.

Fixes #420.
2024-09-23 11:16:41 +01:00
Karoy Lorentey ad79ce5b6a Merge branch 'release/1.1'
# Conflicts:
#	.swiftci/5_10_ubuntu2204
#	.swiftci/5_7_ubuntu2204
#	.swiftci/5_8_ubuntu2204
#	.swiftci/5_9_ubuntu2204
#	.swiftci/nightly_6_0_macos
#	.swiftci/nightly_6_0_ubuntu2204
#	.swiftci/nightly_main_macos
#	.swiftci/nightly_main_ubuntu2204
2024-06-05 10:28:47 -07:00
Jeremy Schonfeld ee97538f5b Add Single Module Build Mode to CMake for Foundation (#385)
* Add new single-module and foundation-toolchain-module modes to CMake build

* Fix allowable client flag syntax
2024-06-03 16:15:50 -07:00
Karoy Lorentey e004cd36fa Merge branch 'release/1.1' into merge.1.1→main
# Conflicts:
#	CMakeLists.txt
#	README.md
2024-02-07 17:35:40 -08:00
Karoy Lorentey ffa4a58bc1 Update remaining copyright notices 2024-02-02 16:20:22 -08:00
Karoy Lorentey 1a0ac8c06c Merge branch 'release/1.0' into release/1.1
# Conflicts:
#	Sources/DequeModule/CMakeLists.txt
#	Sources/DequeModule/Deque+Collection.swift
#	Sources/DequeModule/Deque+Sendable.swift
#	Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.SubSequence.swift
#	Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Elements.swift
#	Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Sendable.swift
#	Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Sequence.swift
#	Sources/OrderedCollections/OrderedDictionary/OrderedDictionary+Values.swift
#	Sources/OrderedCollections/OrderedSet/OrderedSet+Sendable.swift
#	Sources/OrderedCollections/OrderedSet/OrderedSet+SubSequence.swift
#	Sources/OrderedCollections/OrderedSet/OrderedSet+UnorderedView.swift
#	Sources/OrderedCollections/OrderedSet/OrderedSet+UnstableInternals.swift
2023-12-21 15:17:15 -08:00
Saleem Abdulrasool f9c400fb1c build: tweak search path for embedding
Correct the path to allow using swift-collections embedded in a larger
project.  This is meant to assist with building LSP with vendored
dependencies.
2023-12-08 14:11:19 -08:00
Saleem Abdulrasool 6e91291cb2 build: support building in Debug mode on Windows
With this tweak, we should be able to build the package in debug mode
even on Windows.  We always use the release mode DLL form of the C/C++
runtime on Windows and can build the Swift code in Debug or Release mode
optimizations.
2023-12-08 08:44:06 -08:00
Saleem Abdulrasool 2bc657fad1 build: support building in Debug mode on Windows
With this tweak, we should be able to build the package in debug mode
even on Windows.  We always use the release mode DLL form of the C/C++
runtime on Windows and can build the Swift code in Debug or Release mode
optimizations.
2023-12-08 08:43:02 -08:00
Saleem Abdulrasool e732790fde build: support building in Debug mode on Windows
With this tweak, we should be able to build the package in debug mode
even on Windows.  We always use the release mode DLL form of the C/C++
runtime on Windows and can build the Swift code in Debug or Release mode
optimizations.
2023-11-30 16:48:40 -08:00
Saleem Abdulrasool 0b7ebf4977 build: support using swift-collections in larger projects
This enables the use of swift-collections with CMake in a larger project
with CMake. In particular, this enables the use of swift-collections
with FetchContent to enable integration with other projects for
vendoring.
2023-11-23 19:23:13 -08:00
Karoy Lorentey 4a4aecf0ce [CMake] swift-collections → SwiftCollections (#60)
* [CMake] swift-collections → SwiftCollections

This is an integration FIXME for SwiftPM: https://github.com/apple/swift-package-manager/pull/3595#issuecomment-875201764

* [CMake] Generate exports under cmake/modules/SwiftCollectionsConfig.cmake
2021-07-08 11:59:56 -07:00
Saleem Abdulrasool 689c485dfe build: add a CMake based build system (#42)
Add a CMake based build system to enable bootstrapping the toolchain
with the ability to use Swift Collections in SPM.
2021-05-21 19:54:59 -07:00