-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[6.0] Add cross-compiling support for the windows toolchain #73920
[6.0] Add cross-compiling support for the windows toolchain #73920
Conversation
@swift-ci test |
Future work to enable Android SDKs requires fetching additional dependencies (e.g. Android NDK). Refactor the fetch dependencies method to allow us to share the download logic rather than replicating it for each piece. This will also allow us to fetch the Python dependency for the ARM64 toolchain cross-compilation. (cherry picked from commit 726bf5c)
@swift-ci test windows |
@swift-ci test macOS |
@swift-ci test Linux |
git log --oneline --no-merges origin/release/6.0..origin/main -- utils/build.ps1 Need to cherry-pick following commits to enable arm64 support on Windows for release/6.0 branch:
@compnerd Do we need any of the following commits in release/6.0 and to support arm64?
@rintaro Should we pull this into release/6.0?
Both of these commits were made due to Android support: |
When using the just built compiler, we need to use the build CMark runtime as it is executing on the build. This used to work when host and build were guaranteed to be identical (i.e. no cross-compilation). This is now needed to support cross-compiling ARM64. (cherry picked from commit 421c0cf)
We need to tweak the path before we can use the pinned or the just built toolchain. This becomes a problem when trying to cross-compile the toolchain. (cherry picked from commit 5440760)
Co-authored-by: Mishal Shah <[email protected]> (cherry picked from commit eb6cd28)
@swift-ci test |
Co-authrored with @compnerd
(cherry picked from commit f6ab729)
Explanation: Bring cross-compiling support for Windows arm64 to release/6.0 branch
Scope: Update the utils/build.ps1 script to include changes required to cross compile for arm64.
Original PRs: #71584, #73058, #73494, #73733
Risk: Low
Testing: Verify the Windows toolchain for arm64 builds
Reviewer: @compnerd