• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS")
2
3toolchain(
4    name = "cc-toolchain-%{name}",
5    exec_compatible_with = HOST_CONSTRAINTS,
6    target_compatible_with = HOST_CONSTRAINTS,
7    toolchain = "@local_config_cc//:cc-compiler-%{name}",
8    toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
9)
10
11toolchain(
12    name = "cc-toolchain-armeabi-v7a",
13    exec_compatible_with = HOST_CONSTRAINTS,
14    target_compatible_with = [
15        "@platforms//cpu:armv7",
16        "@platforms//os:android",
17    ],
18    toolchain = "@local_config_cc//:cc-compiler-armeabi-v7a",
19    toolchain_type = "@bazel_tools//tools/cpp:toolchain_type",
20)
21