Skip to content

Runtimes: reworking Distributed build to work on Windows #83157

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 1 commit into from
Jul 18, 2025

Conversation

compnerd
Copy link
Member

The primary change required here is to remove the LINKER_LANGUAGE property on the target with policy CMP0157 set to OLD. Take the opportunity to re-order the flag handling to match the other runtime library CMakeLists making it easier to diff them. -library-level api is implicitly handled by the emit_swift_interface call, so remove that. The other runtimes use a centralised ExperimentalFeatures which would add in the unsafe support. While in the area, add in a dependency on SwiftOverlay to wire up the builtin_float module dependency as well.

The primary change required here is to remove the `LINKER_LANGUAGE`
property on the target with policy CMP0157 set to `OLD`. Take the
opportunity to re-order the flag handling to match the other runtime
library CMakeLists making it easier to diff them. `-library-level api`
is implicitly handled by the `emit_swift_interface` call, so remove
that. The other runtimes use a centralised `ExperimentalFeatures` which
would add in the unsafe support. While in the area, add in a dependency
on `SwiftOverlay` to wire up the `builtin_float` module dependency as
well.
@compnerd
Copy link
Member Author

@swift-ci please smoke test

LocalTestingDistributedActorSystem.swift)

target_compile_options(swiftDistributed PRIVATE
add_compile_options(
Copy link
Member

Choose a reason for hiding this comment

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

Why are we switching to add_compile_options here?

Copy link
Member Author

Choose a reason for hiding this comment

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

To keep in sync with the other modules that we are building. It makes diffing the CMakeLists.txt easier.

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Afaics looks ok, thank you

@compnerd compnerd merged commit a2b11cf into swiftlang:main Jul 18, 2025
3 checks passed
@compnerd compnerd deleted the distributed-work branch July 18, 2025 15:42
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