2019-08-21 14:29:46 +00:00
|
|
|
load("@local_config_platform//:constraints.bzl", "HOST_CONSTRAINTS")
|
2019-10-24 14:01:01 +00:00
|
|
|
|
2019-08-21 14:29:46 +00:00
|
|
|
toolchain(
|
|
|
|
name = "cc-toolchain-%{name}",
|
|
|
|
exec_compatible_with = HOST_CONSTRAINTS,
|
|
|
|
target_compatible_with = HOST_CONSTRAINTS,
|
|
|
|
toolchain = "@local_config_cc//:cc-compiler-%{name}",
|
|
|
|
toolchain_type = "@rules_cc//cc:toolchain_type",
|
|
|
|
)
|
|
|
|
|
|
|
|
toolchain(
|
|
|
|
name = "cc-toolchain-armeabi-v7a",
|
|
|
|
exec_compatible_with = HOST_CONSTRAINTS,
|
|
|
|
target_compatible_with = [
|
|
|
|
"@platforms//cpu:arm",
|
|
|
|
"@platforms//os:android",
|
|
|
|
],
|
|
|
|
toolchain = "@local_config_cc//:cc-compiler-armeabi-v7a",
|
|
|
|
toolchain_type = "@rules_cc//cc:toolchain_type",
|
|
|
|
)
|