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.
diff --git a/cpu/BUILD b/cpu/BUILD index 2fed273..641621e 100644 --- a/cpu/BUILD +++ b/cpu/BUILD
@@ -14,9 +14,9 @@ constraint_setting(name = "cpu") # TODO(b/136237408): Remove this generic CPU name and replace with a specific one. -constraint_value( +alias( name = "aarch64", - constraint_setting = ":cpu", + actual = ":arm64", ) # TODO(b/136237408): Remove this generic CPU name and replace with a specific one.