Skip to content

Enable experimental 'AllowUnsafeAttribute' feature to continue supporting 6.1 development snapshot toolchains #1084

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,17 @@ extension Array where Element == PackageDescription.SwiftSetting {
// proposal via Swift Evolution.
.enableExperimentalFeature("SymbolLinkageMarkers"),

// This setting is no longer needed when building with a 6.2 or later
// toolchain now that SE-0458 has been accepted and implemented, but it is
// needed in order to preserve support for building with 6.1 development
// snapshot toolchains. (Production 6.1 toolchains can build the testing
// library even without this setting since this experimental feature is
// _suppressible_.) This setting can be removed once the minimum supported
// toolchain for building the testing library is ≥ 6.2. It is not needed
// in the CMake settings since that is expected to build using a
// new-enough toolchain.
.enableExperimentalFeature("AllowUnsafeAttribute"),

// When building as a package, the macro plugin always builds as an
// executable rather than a library.
.define("SWT_NO_LIBRARY_MACRO_PLUGINS"),
Expand Down