Skip to content

Fix cross-compilation issues in 5.3 after arm64 upstream merge #1390

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 37 commits into from
Jul 7, 2020

Conversation

MaxDesiatov
Copy link

@MaxDesiatov MaxDesiatov commented Jul 6, 2020

This is same as #1389, but applied to the 5.3 branch.

shahmishal added 30 commits July 3, 2020 01:06
Most of the changes fall into a few categories:
* Replace explicit "x86_64" with %target-cpu in lit tests
* Cope with architecture differences in IR/asm/etc. macOS-specific tests
…n macOS.

Most of this is enabled by an upstream change to generalize the tests
for the api-digester to properly handle all targets. The primary change
here is to account for the Swift-level ABI differences for the standard
library between Apple Silicon macOS and Intel macOS. Specifically, anything
related to Float80 will be removed from the standard library on Apple Silicon
macOS, so account for the differences.
…iling

clang and compiler-rt are rev-locked and should match.  Currently, we build clang (and use it to bootstrap the rest) but don't build compiler-rt.  We should.

This doesn't completely achieve that: this only makes us build compiler-rt for the local host.

This used to be pretty much impossible, but, since then, compiler-rt cmake support was rewritten.

We should build it for the other hosts as well, but that's trickier, because we'd need to make the cross-compiled compiler-rt build use a separate just-built clang (from the local host). We do that for the other projects, but compiler-rt is special (because it's cmake'd as a runtime part of clang/llvm).
…acy-impl.

LIPO_SRC_DIRS wasn't set for '--only-execute merged-hosts-lipo',
because the logic was skipped for actions other than install.
shahmishal and others added 7 commits July 3, 2020 01:15
LLVM no longer canonicalizes target triples for maOS versions. Update
tests to account for this.
…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 merged commit 6166408 into swiftwasm-release/5.3 Jul 7, 2020
@MaxDesiatov MaxDesiatov deleted the maxd/5.3-arm64-fix branch July 7, 2020 07:33
@MaxDesiatov MaxDesiatov added the release Issues with the release version label Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⤵️ Upstream Tracking release Issues with the release version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants