-
Notifications
You must be signed in to change notification settings - Fork 12
Cross compile for m1 in ci #958
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
46f4dfa to
a87a94c
Compare
3d3065a to
400f9a9
Compare
update workflow to cross compile for m1 add arm64-osx-rel triplet temporarily remove aws runners
Host triplet is really only used for providing tools that need to be run on the host, so Debug doesn't really make sense. This also saves a lot of disk space and compile time
4960800 to
5192b45
Compare
5192b45 to
49f015e
Compare
|
@Ninja3047 Have you tested whether this PR works with the latest commit using my fixes for protobuf cross compilation? I have an x86 mac but I don't have an ARM mac to test the built product. If this works for you, then I want to submit the fixes upstream to vcpkg. |
This reverts commit 49f015e.
hrmm flatbuffers appears to have an issue |
|
weird, looks like it was done intentionally |
get this error when building a library that links grpc using the exported artifacts |
|
Thanks for testing and investigating... I believe we're in uncharted territory, so there will be bugs like this. I'll remove the line you mentioned here #958 (comment) |
Hmmmm. I'll have to investigate this a bit more. gRPC is patched to use a separate upb package but I haven't dug into much yet. The patch is likely missing some additional fixes. |
1e78ff6 to
13391c2
Compare
|
tested on M1 with Rellic/Anvill and Remill |
ekilmer
left a comment
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.
Looks good aside from using the vcpkg fork!
they may be needed for protoc, in theory they should run with rosetta2
* master: Remove AWS CI runners (#978)
|
The LLVM 15 error is coming due to LLVM using the wrong |
ekilmer
left a comment
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! Waiting on CI
build_dependencies.sh works locally for when cross compiling to x64 from an M1
hopefully it just works in the other direction as well