Skip to content

CMake: add option to link Swift content from Darwin toolchain #73255

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

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Apr 25, 2024

This is needed in specific Apple internal configurations -- as a result of the limited applicability, this option is not exposed through build-script on purpose.

Addresses rdar://127014753

@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

@swift-ci please test

@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

@swift-ci please build toolchain

@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

@swift-ci please test WebAssembly

Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This is rather unfortunate - these dependencies will not be tracked by the build and so the build may not always be entirely correct.

This is needed in specific Apple internal configurations -- as a result
of the limited applicability, this option is not exposed through
`build-script` on purpose.

Addresses rdar://127014753
@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

Thanks for understanding -- I'm not fond of these changes either, my plan is to remove those once I figure out a better long term solution.

@edymtt edymtt force-pushed the edymtt/allow-linking-swift-content-from-darwin-toolchain branch from 8a6a934 to 5f545b4 Compare April 25, 2024 23:54
@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

@swift-ci please test

@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

@swift-ci please build toolchain

@edymtt
Copy link
Contributor Author

edymtt commented Apr 25, 2024

@swift-ci please test WebAssembly

Copy link
Contributor

@al45tair al45tair left a comment

Choose a reason for hiding this comment

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

It's a bit unpleasant, but it lets us make progress fixing things so we hopefully won't need it at some point and can get rid of it again.

@edymtt edymtt merged commit 2942960 into swiftlang:main Apr 26, 2024
9 checks passed
edymtt added a commit to edymtt/swift that referenced this pull request Apr 26, 2024
Additional testing showed that in this scenario we need to target
the toolchain at `CMAKE_Swift_COMPILER`.

Expands on swiftlang#73255
Still addresses rdar://127014753
edymtt added a commit to edymtt/swift that referenced this pull request Apr 26, 2024
Additional testing showed that the path I initially choose does not work
in all scenarios.

Expands on swiftlang#73255
Still addresses rdar://127014753
edymtt added a commit to edymtt/swift that referenced this pull request Apr 27, 2024
Additional testing showed that the path I initially choose does not work
in all scenarios.

Expands on swiftlang#73255
Still addresses rdar://127014753

(cherry picked from commit 291065d)
edymtt added a commit to edymtt/llvm-project that referenced this pull request Apr 28, 2024
This is a companion to swiftlang/swift#73255, and
it's needed in some Apple internal configurations.

Addresses rdar://127113448

(cherry picked from commit 842763b)
edymtt added a commit to swiftlang/llvm-project that referenced this pull request Apr 29, 2024
…8647)

This is a companion to swiftlang/swift#73255, and
it's needed in some Apple internal configurations.

Addresses rdar://127113448
edymtt added a commit to edymtt/llvm-project that referenced this pull request Apr 29, 2024
… toolchain

This is a companion to swiftlang/swift#73255, and
it's needed in some Apple internal configurations.

Addresses rdar://127113448

(cherry picked from commit ead278f)
edymtt added a commit to edymtt/llvm-project that referenced this pull request Apr 29, 2024
… toolchain

This is a companion to swiftlang/swift#73255, and
it's needed in some Apple internal configurations.

Addresses rdar://127113448

(cherry picked from commit ead278f)
edymtt added a commit to swiftlang/llvm-project that referenced this pull request Apr 30, 2024
… toolchain (#8653)

This is a companion to swiftlang/swift#73255, and
it's needed in some Apple internal configurations.

Addresses rdar://127113448

(cherry picked from commit ead278f)
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