Fix Android platforms constraint

When using bazel platforms and new rules_android_ndk, crosstool_top is
actually still `//external:android/crosstool`. The right way to detect
Android is to use `constraint_value`.
pull/16246/head
Ming-Chuan Lin 10 months ago
parent 774627235e
commit dbf3fd58db
  1. 4
      build_defs/BUILD.bazel

@ -38,9 +38,7 @@ config_setting(
# When using https://bazel.build/concepts/platforms
config_setting(
name = "config_android",
values = {
"crosstool_top": "@platforms//os:android",
},
constraint_values = ["@platforms//os:android"],
)
# When using legacy flags like --android_crosstool_top, --android_cpu, and --fat_apk_cpu

Loading…
Cancel
Save