Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

add support compilation on m1 mac #3376

Merged
merged 1 commit into from
Jan 23, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion grpc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,22 @@ dependencies {
implementation "javax.annotation:javax.annotation-api:1.3.2"
}

def artifactName = 'com.google.protobuf:protoc:3.14.0:osx-x86_64'
switch (org.gradle.internal.os.OperatingSystem.current()) {
case org.gradle.internal.os.OperatingSystem.LINUX:
artifactName = "com.google.protobuf:protoc:3.13.0"
break;
case org.gradle.internal.os.OperatingSystem.MAC_OS:
artifactName = "com.google.protobuf:protoc:3.14.0:osx-x86_64"
break;
case org.gradle.internal.os.OperatingSystem.WINDOWS:
artifactName = "com.google.protobuf:protoc:3.13.0"
break;
}

protobuf {
protoc {
artifact = "com.google.protobuf:protoc:${revProtoBuf}"
artifact = artifactName
}
plugins {
grpc {
Expand Down