Skip to content

[Build] Fix the minimal-stdlib build by setting a deployment version. #82018

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

Conversation

al45tair
Copy link
Contributor

@al45tair al45tair commented Jun 5, 2025

We need to set a deployment version, not just blank, because otherwise we don't know the correct deployment target to use for the standard library.

We need to set a deployment version, not just blank, because otherwise
we don't know the correct deployment target to use for the standard
library.
@al45tair
Copy link
Contributor Author

al45tair commented Jun 5, 2025

@swift-ci Please test

@@ -67,6 +67,8 @@ def build(self, host_target):
self.cmake_options.define(
'SWIFT_FREESTANDING_MODULE_NAME:STRING', 'macos')
self.cmake_options.define('SWIFT_FREESTANDING_SDK:STRING', 'macosx')
self.cmake_options.define('SWIFT_FREESTANDING_DEPLOYMENT_VERSION:STRING',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we plumb through a flag to override this value? Does 11.0 make sense as the only value for all situations where this is used?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The 11.0 matches the SWIFT_FREESTANDING_TRIPLE_NAME immediately below, which also doesn't have any extra plumbing. I don't think we need to have a way to override this — my understanding is that the minimal stdlib build is really there for testing purposes, and people actually using it would likely build it or something based on it "by hand" with whatever arguments they actually need.

@al45tair
Copy link
Contributor Author

al45tair commented Jun 5, 2025

@swift-ci Please smoke test Linux platform

@al45tair
Copy link
Contributor Author

al45tair commented Jun 5, 2025

Linux build timed-out on a test.

@bnbarham
Copy link
Contributor

bnbarham commented Jun 6, 2025

Force merging to unblock macOS PR testing at least (Linux is an unrelated failure that's also being fixed). These are macOS only changes anyway and can't possibly impact Linux.

@bnbarham bnbarham merged commit 7b4d1bc into swiftlang:main Jun 6, 2025
3 of 5 checks passed
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.

3 participants