Skip to content

Commit

Permalink
work-around old protobuf:protoc on Apple Silicon
Browse files Browse the repository at this point in the history
Use x86_64 protobuf compilers on macOS until protobuf is updated to a newer version (~3.21.0).
See grpc/grpc-java#7690 for more background.
  • Loading branch information
tmancill committed Aug 22, 2023
1 parent c1d8c0d commit d7c9fd3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion org.jvoicexml.client.text/build.gradle
Expand Up @@ -50,7 +50,11 @@ protobuf {
// Configure the protoc executable
protoc {
// Download from repositories
artifact = 'com.google.protobuf:protoc:3.0.0'
if (osdetector.os == "osx") {
artifact = 'com.google.protobuf:protoc:3.0.0:osx-x86_64'
} else {
artifact = 'com.google.protobuf:protoc:3.0.0'
}
}

generateProtoTasks {
Expand Down
6 changes: 5 additions & 1 deletion org.jvoicexml.mmi.events/build.gradle
Expand Up @@ -51,7 +51,11 @@ dependencies {

protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.0.0'
if (osdetector.os == "osx") {
artifact = 'com.google.protobuf:protoc:3.0.0:osx-x86_64'
} else {
artifact = 'com.google.protobuf:protoc:3.0.0'
}
}

generateProtoTasks {
Expand Down

0 comments on commit d7c9fd3

Please sign in to comment.