Skip to content

build: fix cross-compilation on Darwin platforms #32720

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

Merged
merged 1 commit into from
Jul 7, 2020

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Jul 6, 2020

After #32705 was merged, cross-compiling stdlib from Darwin to other platforms (such as WebAssembly/WASI) fails. This is fixed by performing the condition check for Darwin targets within the buil-script loop.

Related to SR-9307

CC @kateinoigakukun

…cript

The added lines by Apple Silicon patch really depend on the build
machine platform and it forces that we can build stdlib only for
darwin targets. So I changed to allow non-darwin targets and filter only
unsupported darwin targets. This patch shuold be sent to upstream.
@MaxDesiatov MaxDesiatov requested a review from shahmishal July 6, 2020 16:20
@MaxDesiatov
Copy link
Contributor Author

@swift-ci Please smoke test

@MaxDesiatov MaxDesiatov marked this pull request as ready for review July 6, 2020 18:39
@MaxDesiatov MaxDesiatov requested a review from compnerd July 6, 2020 19:10
@MaxDesiatov MaxDesiatov merged commit dd51dac into swiftlang:master Jul 7, 2020
@kateinoigakukun kateinoigakukun deleted the reenable-cross-compilation branch October 30, 2020 00:25
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