Skip to content

Commit 29b4df6

Browse files
committed
Enable sandboxing for swift builds
I discovered an issue in the rules where we were relying on the fact that persistent workers, which rules_swift uses, disable the sandbox by default. Disabling workers in these rules shouldn't hurt anything since we don't rely on the incremental compilation performance benefits.
1 parent 94a3e15 commit 29b4df6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,10 @@ test --build_tests_only
1717
# visibility and symbol import issues are resolved.
1818
build --nocheck_visibility
1919

20+
# Disable the worker, which has sandboxing disabled by default, which can hide
21+
# issues with non-hermetic bugs.
22+
build --spawn_strategy=sandboxed,local
23+
build --worker_sandboxing=true
24+
2025
# Use llvm-cov instead of gcov (default).
2126
coverage --experimental_use_llvm_covmap

0 commit comments

Comments
 (0)