Skip to content

Commit dac53be

Browse files
Fix build for Linux for aarch64 (#1891)
1 parent d5d96f8 commit dac53be

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

temporal-serviceclient/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ protobuf {
6060
// protoc and protoc-gen-grpc-java versions are selected to be compatible
6161
// with the oldest supported versions of protoc and grpc artifacts.
6262
protoc {
63-
artifact = 'com.google.protobuf:protoc:3.10.1' + (System.getProperty("os.arch") == 'aarch64' ? ':osx-x86_64' : '')
63+
artifact = 'com.google.protobuf:protoc:3.10.1' + (System.getProperty("os.arch") == 'aarch64' && System.getProperty("os.name") == 'Mac OS X' ? ':osx-x86_64' : '')
6464
}
6565
plugins {
6666
grpc {
67-
artifact = 'io.grpc:protoc-gen-grpc-java:1.34.1' + (System.getProperty("os.arch") == 'aarch64' ? ':osx-x86_64' : '')
67+
artifact = 'io.grpc:protoc-gen-grpc-java:1.34.1' + (System.getProperty("os.arch") == 'aarch64' && System.getProperty("os.name") == 'Mac OS X' ? ':osx-x86_64' : '')
6868
}
6969
}
7070
generateProtoTasks {

temporal-test-server/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,11 @@ protobuf {
6262
// protoc and protoc-gen-grpc-java versions are selected to be compatible
6363
// with the oldest supported versions of protoc and grpc artifacts.
6464
protoc {
65-
artifact = 'com.google.protobuf:protoc:3.10.1' + (System.getProperty("os.arch") == 'aarch64' ? ':osx-x86_64' : '')
65+
artifact = 'com.google.protobuf:protoc:3.10.1' + (System.getProperty("os.arch") == 'aarch64' && System.getProperty("os.name") == 'Mac OS X' ? ':osx-x86_64' : '')
6666
}
6767
plugins {
6868
grpc {
69-
artifact = 'io.grpc:protoc-gen-grpc-java:1.34.1' + (System.getProperty("os.arch") == 'aarch64' ? ':osx-x86_64' : '')
69+
artifact = 'io.grpc:protoc-gen-grpc-java:1.34.1' + (System.getProperty("os.arch") == 'aarch64' && System.getProperty("os.name") == 'Mac OS X' ? ':osx-x86_64' : '')
7070
}
7171
}
7272
generateProtoTasks {

0 commit comments

Comments
 (0)