Skip to content
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

Add support for M1 Macs #1

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

conormcd
Copy link

Versions of com.google.protobuf/protoc prior to 3.17.3 don't ship binaries suitable for Apple Arm chips. Those machines can run the x86_64 versions of protoc, so for versions before 3.17.3 we choose that architecture instead.

Also, improve the error messages for when lein-protoc is used on an unsupported OS or architecture.

If we haven't been able to find an appropriate copy of protoc then
build-cmd should return nil in order to prevent compile-proto! from
executing a malformed command line.
If Leiningen fails to return a value for either the operating system or
architecture then we emit a warning message explaining what happened.
Versions of com.google.protobuf/protoc prior to 3.17.3 don't ship
binaries suitable for Apple Arm chips. Those laptops can run the x86_64
versions of protoc, so for versions before 3.17.3 we choose that
architecture instead.
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.

1 participant