Skip to content

Only enable unsafe flags if version 6.2 or newer.#8951

Merged
dschaefer2 merged 2 commits into
swiftlang:mainfrom
dschaefer2:unsafe-tools-version
Jul 18, 2025
Merged

Only enable unsafe flags if version 6.2 or newer.#8951
dschaefer2 merged 2 commits into
swiftlang:mainfrom
dschaefer2:unsafe-tools-version

Conversation

@dschaefer2

Copy link
Copy Markdown
Member

As we disable checking for unsafe flags, make sure they are still checked when the swift-tools-version is earlier than 6.2. This ensures consumers of the package don't get unsafe flags errors when using older toolchains. They will need to upgrade their toolchains to use packages with unsafe flags.

As we disable checking for unsafe flags, make sure they are still
checked when the swift-tools-version is earlier than 6.2.
This ensures consumers of the package don't get unsafe flags
errors when using older toolchains. They will need to upgrade
their toolchains to use packages with unsafe flags.
@dschaefer2

Copy link
Copy Markdown
Member Author

@swift-ci please test

@dschaefer2

Copy link
Copy Markdown
Member Author

@swift-ci please test windows

@dschaefer2

Copy link
Copy Markdown
Member Author

@swift-ci please test self hosted windows

@dschaefer2
dschaefer2 merged commit 9633b41 into swiftlang:main Jul 18, 2025
6 checks passed
@dschaefer2
dschaefer2 deleted the unsafe-tools-version branch July 18, 2025 13:08
dschaefer2 added a commit to dschaefer2/swift-package-manager that referenced this pull request Jul 18, 2025
As we disable checking for unsafe flags, make sure they are still
checked when the swift-tools-version is earlier than 6.2. This ensures
consumers of the package don't get unsafe flags errors when using older
toolchains. They will need to upgrade their toolchains to use packages
with unsafe flags.
dschaefer2 added a commit that referenced this pull request Jul 18, 2025
Cherry pick of #8951 

As we disable checking for unsafe flags, make sure they are still
checked when the swift-tools-version is earlier than 6.2. This ensures
consumers of the package don't get unsafe flags errors when using older
toolchains. They will need to upgrade their toolchains to use packages
with unsafe flags.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants