Skip to content

Commit e20c932

Browse files
committed
Make aarch64 an alias of arm64
On Apple silicon Macs, auto-detected host platform constraints' cpu is aarch64, but arm64 is used everywhere else. This change ensures that you will get the same cpu when your target depends on an arm64 or an aarch64 cpu contraint.
1 parent 5400325 commit e20c932

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpu/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ filegroup(
1414
constraint_setting(name = "cpu")
1515

1616
# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.
17-
constraint_value(
17+
alias(
1818
name = "aarch64",
19-
constraint_setting = ":cpu",
19+
actual = ":arm64",
2020
)
2121

2222
# TODO(b/136237408): Remove this generic CPU name and replace with a specific one.

0 commit comments

Comments
 (0)