Build notes for arm64 / Apple Silicon #1519
a-staebler
started this conversation in
General
Replies: 2 comments 1 reply
-
Forgot one critical step: downgrading XCode to 13.2.1 to work around abseil build errors. I used xcpretty/xcode-install. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Thanks, this would be useful for someone testing on M1. I don't think GitHub CI virtual machine has option to run on M1. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I managed to get a build working with bazel on Apple Silicon. I'm not very familiar with bazel. Here are the tweaks and shortcuts I took:
brew install openjdk@11
.This led to the following changes in
.bazelrc
afterbuild --copt -DGRPC_BAZEL_BUILD
:My goal was to disable test builds but I did not succeed with the first
copt
line for http client. As a workaround i excluded it based on the test tag. I also had to work around an openssl build error in thrift, so I excluded jaeger.This lead to the following successful build command:
Thanks to @seemk for helping me with the tricky bazel configuration parts.
Beta Was this translation helpful? Give feedback.
All reactions