summaryrefslogtreecommitdiffhomepage
path: root/tools/bazeldefs/BUILD
diff options
context:
space:
mode:
authorAndrei Vagin <avagin@google.com>2020-12-09 00:42:53 -0800
committerShentubot <shentubot@google.com>2020-12-09 15:51:33 -0800
commit658f874b94ad83d9b4abed47d9aba856fe5f617c (patch)
treece2ea322df840b882d41f02bc27a1e288decefc9 /tools/bazeldefs/BUILD
parent96d14de0fa51d6c7fd5a34c69f27caf76a26f7aa (diff)
Prepare for supporting cross compilation.
PiperOrigin-RevId: 346496532
Diffstat (limited to 'tools/bazeldefs/BUILD')
-rw-r--r--tools/bazeldefs/BUILD18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/bazeldefs/BUILD b/tools/bazeldefs/BUILD
index 27e85a75e..97c7cb45f 100644
--- a/tools/bazeldefs/BUILD
+++ b/tools/bazeldefs/BUILD
@@ -58,3 +58,21 @@ bzl_library(
srcs = ["defs.bzl"],
visibility = ["//visibility:private"],
)
+
+config_setting(
+ name = "linux_arm64_cross",
+ values = {
+ "cpu": "aarch64",
+ "host_cpu": "k8",
+ },
+ visibility = ["//visibility:private"],
+)
+
+config_setting(
+ name = "linux_amd64_cross",
+ values = {
+ "cpu": "k8",
+ "host_cpu": "aarch64",
+ },
+ visibility = ["//visibility:private"],
+)