Skip to content

Commit

Permalink
Sync appropriate protoc artifact for m1
Browse files Browse the repository at this point in the history
Fixes compilation on M1 macOS. Check grpc/grpc-java#7690 for further info

Signed-off-by: Aayush Gupta <aayushgupta219@gmail.com>
  • Loading branch information
theimpulson committed Aug 2, 2023
1 parent 64ecd5c commit cba065f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion storage/lib/build.gradle
Expand Up @@ -43,7 +43,13 @@ android {
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:$protobuf_version"
if ("aarch64" == System.getProperty("os.arch")) {
// mac m1
artifact = "com.google.protobuf:protoc:$protobuf_version:osx-x86_64"
} else {
// other
artifact = "com.google.protobuf:protoc:$protobuf_version"
}
}
generateProtoTasks {
all().each { task ->
Expand Down

0 comments on commit cba065f

Please sign in to comment.