summaryrefslogtreecommitdiffhomepage
path: root/.bazelrc
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2021-01-07 20:48:58 -0800
committergVisor bot <gvisor-bot@google.com>2021-01-07 20:48:58 -0800
commitbf343394d4988c01461b59b6b05bc508f26855eb (patch)
tree586ba320187829bbcc66382ee87c0f2f5502894a /.bazelrc
parent77b340ce82230e4e0bded01f43232c708328cd7e (diff)
parent8de562b79942f5383ffbe67873df07509ca7fcb0 (diff)
Merge pull request #5207 from avagin:arm64-cross
PiperOrigin-RevId: 350691246
Diffstat (limited to '.bazelrc')
-rw-r--r--.bazelrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/.bazelrc b/.bazelrc
index 9eee6bea5..413cee3b0 100644
--- a/.bazelrc
+++ b/.bazelrc
@@ -20,3 +20,8 @@ build --cxxopt=-std=c++17
# Display the current git revision in the info block.
build --stamp --workspace_status_command tools/workspace_status.sh
+
+# Set flags for aarch64.
+build:cross-aarch64 --crosstool_top=@crosstool//:toolchains --compiler=gcc
+build:cross-aarch64 --cpu=aarch64
+build:cross-aarch64 --platforms=@io_bazel_rules_go//go/toolchain:linux_arm64