From 0e48fc3cb448b0a8b70ea17b018acf5ea9230472 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 12 Dec 2022 10:24:52 +0200 Subject: [PATCH] tests: sandboxing The slowness of bazel-zig-cc comes from setup and teardown of sandbox directories[1]. Turning on `experimental_reuse_sandbox_directories` speeds it up significantly. Depending on how the tests with this go in the next few days, I will add this recommendation to README. This has been marked as safe to use and no longer experimental as of Bazel master[2]. [1]: https://git.sr.ht/~motiejus/test-zigcc [2]: https://github.com/bazelbuild/bazel/pull/16490 --- .bazelrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.bazelrc b/.bazelrc index d412076..dc904bb 100644 --- a/.bazelrc +++ b/.bazelrc @@ -4,5 +4,6 @@ test --test_output=errors build --verbose_failures build --worker_sandboxing +build --experimental_reuse_sandbox_directories build --incompatible_enable_cc_toolchain_resolution build --action_env BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1