-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[5.5][build] Add the flags to enable cross-compiling the corelibs #38146
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
""" | ||
CMake flags to build for a platform, useful for cross-compiling | ||
""" | ||
return '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since empty strings are passed here for every cross-compilation host but Android, this pull is very safe.
@drexin, would you run the CI on this? |
@swift-ci test |
Single concurrency test failure on Win CI appears unrelated. |
122dae4
to
9ca6d68
Compare
Updated to include the test fix from #38181 and rebased. |
9ca6d68
to
fb441eb
Compare
@drexin, would you run the CI on this again? |
@swift-ci test |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@swift-ci nominate |
Pass the Swift and CMake flags needed to cross-compile Foundation and so on, with the first example of Android. Add a new flag, --cross-compile-deps-path, which is used to search for cross-compiled libraries, like libcurl, that the corelibs depend on. Also add a new flag, --common-swift-flags, to pass additional Swift flags to the corelibs.
Rebased and given the further failures of this single test on trunk, #38279, made this test linux-only, as it is the only platform on which I have tested it myself. |
@swift-ci test |
@swift-ci nominate |
Thanks, everyone. |
Cherry-pick of #33724 and the test fix #38181
--cross-compile-hosts
and currently does nothing for every cross-compilation host but Android.