Add android x86-64 support x86-64 is an officially supported arch on Android [1]. Android is a platform similar to Linux, and we can enable SIMD on it. To do so, this CL extend `:x86_64_and_not_msvc` to not only linux but also android. This will help apps on android that uses ruy to have SIMD speed up. [1] https://developer.android.com/ndk/guides/abis#sa PiperOrigin-RevId: 836149343
diff --git a/ruy/BUILD b/ruy/BUILD index 75c01ee..8b34555 100644 --- a/ruy/BUILD +++ b/ruy/BUILD
@@ -23,13 +23,29 @@ ) config_setting( - name = "x86_64_and_not_msvc", + name = "x86_64_android", + constraint_values = [ + "@platforms//cpu:x86_64", + "@platforms//os:android", + ], +) + +config_setting( + name = "x86_64_linux", constraint_values = [ "@platforms//cpu:x86_64", "@platforms//os:linux", ], ) +selects.config_setting_group( + name = "x86_64_and_not_msvc", + match_any = [ + ":x86_64_android", + ":x86_64_linux", + ], +) + config_setting( name = "windows_msvc", constraint_values = [