Skip to content

Commit

Permalink
Use protobuf aarch64 binaries for ARM processors
Browse files Browse the repository at this point in the history
aarch64 binaries have been available since version 3.5.0, therefore
it shouldn't be needed to default to x86_64.
  • Loading branch information
namloan committed Jul 4, 2023
1 parent 866bb97 commit 4f67481
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions build-logic/commons/src/main/groovy/bisq.protobuf.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,12 @@ ext {
def operatingSystem = current()
osFamily = operatingSystem.familyName
osArch = System.getProperty("os.arch")
// Extra OSX Arch property needed to workaround lack of protobuf support in M1 Mac system.
osxArch = System.getProperty('os.arch') == 'aarch64' ? ':osx-x86_64' : ''
osDescription = operatingSystem.toString()
}

protobuf {
protoc {
// Append 'osxArch' property to workaround M1 Mac bug.
artifact = "com.google.protobuf:protoc:3.19.4${osxArch}"
artifact = "com.google.protobuf:protoc:3.19.4"
}
generateProtoTasks {
all()*.plugins {}
Expand Down

0 comments on commit 4f67481

Please sign in to comment.