xref: /aosp_15_r20/external/bazelbuild-rules_cc/cc/private/toolchain/BUILD.toolchains.tpl (revision eed53cd41c5909d05eedc7ad9720bb158fd93452)
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 = "@rules_cc//cc:toolchain_type",
9)
10
11toolchain(
12    name = "cc-toolchain-armeabi-v7a",
13    exec_compatible_with = HOST_CONSTRAINTS,
14    target_compatible_with = [
15        "@platforms//cpu:arm",
16        "@platforms//os:android",
17    ],
18    toolchain = "@local_config_cc//:cc-compiler-armeabi-v7a",
19    toolchain_type = "@rules_cc//cc:toolchain_type",
20)
21