*: migrate to CC toolchains and Bazel 5.4.0
Change-Id: Iff3c0ddda4413dd0c5fa657a5b7813223e98611e
Reviewed-on: https://review.monogon.dev/c/monogon/+/1079
Tested-by: Jenkins CI
Reviewed-by: Lorenz Brun <lorenz@monogon.tech>
diff --git a/.bazelrc.sandboxroot b/.bazelrc.sandboxroot
index 5565210..5fce09a 100644
--- a/.bazelrc.sandboxroot
+++ b/.bazelrc.sandboxroot
@@ -2,6 +2,10 @@
startup --batch_cpu_scheduling --io_nice_level 7
build --incompatible_strict_action_env=true
+build --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
+
+# No host CC platform - we only want pure Go for the sandboxroot
+build --host_platform=@io_bazel_rules_go//go/toolchain:linux_amd64
# Shared with main .bazelrc
try-import %workspace%/.bazelrc.user