Skip to content

Conversation

finagolfin
Copy link
Member

Follow-on to #38441, missed this there.

…hen cross-compiling Foundation macros

Follow-on to swiftlang#38441, missed this there.
@finagolfin
Copy link
Member Author

@swift-ci smoke test

@finagolfin finagolfin merged commit 2d735e8 into swiftlang:main Jun 11, 2025
3 checks passed
@finagolfin finagolfin deleted the cross-macros branch June 11, 2025 16:14
tbkka pushed a commit that referenced this pull request Jun 23, 2025
…hen cross-compiling Foundation macros (#82163)

Follow-on to #38441, missed this there.
finagolfin added a commit that referenced this pull request Aug 9, 2025
…83422)

This new flag makes it easy to build Swift cross-compilation toolchains,
by disabling cross-compilation of all host tools, like the Swift
compiler and various macros, building on prior pulls #38441 and #82163.

Native compilation has more fine-grained flags like
`--build-swift-tools`, `--build-llvm`, and `--swift-testing-macros`, but
those will disable building them for _all_ platforms (with the exception
of `--build-swift-tools`, which I modified to only apply for the host,
since the initial introduction of this
`--cross-compile-build-swift-tools` flag a couple months ago), so
they're not suited for building a cross-compilation toolchain, where you
want all host tools built for the native host but not for any
cross-compilation SDKs.
finagolfin added a commit that referenced this pull request Aug 22, 2025
This new flag makes it easy to build Swift cross-compilation toolchains, by
disabling cross-compilation of all host tools, like the Swift compiler and
various macros, building on prior pulls #38441 and #82163.

Also, add two class methods to the Testing macros product so it works with #83260.
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.

1 participant