Skip to content

[cmake] [Synchronization] disable autolinking concurrency and older runtimes #82385

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

justice-adams-apple
Copy link
Contributor

Disable autolinking concurrency and older runtimes as part of the Synchronization since they aren't needed

@justice-adams-apple
Copy link
Contributor Author

@swift-ci smoke test

@@ -76,6 +76,9 @@ add_compile_options(
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature RawLayout>"
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature StaticExclusiveOnly>"
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-enable-experimental-feature Extern>"
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-runtime-compatibility-version none>"
"$<$<COMPILE_LANGUAGE:Swift>:-disable-autolinking-runtime-compatibility-dynamic-replacements>"
Copy link
Member

Choose a reason for hiding this comment

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

Why this and the frontend flag? Won't the frontend flag alone be sufficient?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@compnerd I'm not entirely sure, I mainly just copied what we had previously and also what we have in the swiftCore implementation . Let me review the differences between those flags 👁️

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looks like these flags are doing the same thing for two different compatibility libraries: swiftCompatibilityDynamicReplacements and swiftCompatibilityConcurrency. And they are both frontend flags.
https://github.com/swiftlang/swift/blob/main/include/swift/Frontend/BackDeploymentLibs.def

Copy link
Contributor

Choose a reason for hiding this comment

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

I would suggest to align the way this flags are specified, so they have the same "shape" and it is easier to spot the different ending -- either as a swiftc flag, or as a swift-frontend flag, e.g. focusing on this line

Suggested change
"$<$<COMPILE_LANGUAGE:Swift>:-disable-autolinking-runtime-compatibility-dynamic-replacements>"
"$<$<COMPILE_LANGUAGE:Swift>:SHELL:-Xfrontend -disable-autolinking-runtime-compatibility-dynamic-replacements>"

@justice-adams-apple justice-adams-apple force-pushed the jadams/syncronization-disable-concurrency-import branch from 5cc2c98 to d8d2b3f Compare June 24, 2025 15:23
@justice-adams-apple
Copy link
Contributor Author

@swift-ci smoke test

@justice-adams-apple justice-adams-apple force-pushed the jadams/syncronization-disable-concurrency-import branch from d8d2b3f to 16ffbd3 Compare June 24, 2025 17:57
@justice-adams-apple
Copy link
Contributor Author

@swift-ci smoke test

@justice-adams-apple
Copy link
Contributor Author

@swift-ci smoke test MacOs

@justice-adams-apple
Copy link
Contributor Author

@swift-ci smoke test

@justice-adams-apple
Copy link
Contributor Author

@swift-ci smoke test Windows

@justice-adams-apple justice-adams-apple merged commit 9bfb680 into main Jun 27, 2025
3 checks passed
@justice-adams-apple justice-adams-apple deleted the jadams/syncronization-disable-concurrency-import branch June 27, 2025 21:35
susmonteiro pushed a commit to susmonteiro/swift that referenced this pull request Jul 2, 2025
…untimes (swiftlang#82385)

Disable autolinking concurrency and older runtimes as part of the
Synchronization since they aren't needed
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.

4 participants