Skip to content

Commit 3506cf7

Browse files
authored
Fix rome formatter on Apple Silicon. (#1708)
2 parents c2ec7e1 + a10f234 commit 3506cf7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/main/java/com/diffplug/spotless/rome/Architecture.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ public static Architecture guess() {
4343
if (arch.equals("ppc64le")) {
4444
throw new IllegalStateException(msg);
4545
}
46-
if (arch.equals("aarch64")) {
47-
throw new IllegalStateException(msg);
48-
}
4946
if (arch.equals("s390x")) {
5047
throw new IllegalStateException(msg);
5148
}
@@ -55,6 +52,9 @@ public static Architecture guess() {
5552
if (arch.equals("ppc")) {
5653
throw new IllegalStateException(msg);
5754
}
55+
if (arch.equals("aarch64")) {
56+
return ARM64;
57+
}
5858
if (arch.equals("arm")) {
5959
if (version.contains("v7")) {
6060
throw new IllegalStateException(msg);

0 commit comments

Comments
 (0)