Skip to content
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

[build] Support cross-compilation of swift-format #71042

Merged
merged 1 commit into from
Jan 23, 2024

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Jan 21, 2024

Companion of swiftlang/swift-format#679


This should build swift-format as a fat binary containing both an x86_64 and an arm64 slice in the open source toolchains.

The implementation is mostly stolen from the SourceKitLSP product.

rdar://121326143

@ahoppen
Copy link
Member Author

ahoppen commented Jan 21, 2024

@swift-ci Please build toolchain

@ahoppen
Copy link
Member Author

ahoppen commented Jan 21, 2024

swiftlang/swift-format#679

@swift-ci Please build toolchain macOS

This should build swift-format as a fat binary containing both an x86_64 and an arm64 slice in the open source toolchains.

rdar://121326143
@ahoppen ahoppen force-pushed the ahoppen/cross-compile-swiftformat branch from 5620347 to acad2bf Compare January 21, 2024 21:46
@ahoppen
Copy link
Member Author

ahoppen commented Jan 21, 2024

swiftlang/swift-format#679

@swift-ci Please build toolchain macOS

@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

Verified that swift-format is a fat binary in the macOS toolchain now.

@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

@swift-ci Please smoke test

@ahoppen
Copy link
Member Author

ahoppen commented Jan 22, 2024

@swift-ci Please smoke test Linux

@ahoppen ahoppen merged commit 376e216 into swiftlang:main Jan 23, 2024
4 checks passed
@ahoppen ahoppen deleted the ahoppen/cross-compile-swiftformat branch January 23, 2024 03:27
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