Fix build failure on M1 mac (#6324)

This commit is contained in:
Lauri Tulmin 2022-07-14 18:58:45 +03:00 committed by GitHub
parent 2a59d0faee
commit 07f787693c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,10 @@ protobuf {
protoc {
// The artifact spec for the Protobuf Compiler
artifact = "com.google.protobuf:protoc:3.3.0"
if (osdetector.os == "osx") {
// Always use x86_64 version as ARM binary is not available
artifact += ":osx-x86_64"
}
}
plugins {
id("grpc") {