-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bazelrc
64 lines (46 loc) · 1.78 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Enable Bzlmod for every Bazel command
common --enable_bzlmod
# BuildBuddy
build --bes_results_url=https://app.buildbuddy.io/invocation/
build --bes_backend=grpcs://remote.buildbuddy.io
build --nolegacy_important_outputs
try-import ./auth.bazelrc
###############################
# Filesystem interactions #
###############################
build --disk_cache=~/.bazel/cache
build --repository_cache=~/.bazel/repo_cache
build --symlink_prefix=dist/
build --nolegacy_external_runfiles
run --nolegacy_external_runfiles
test --nolegacy_external_runfiles
build --incompatible_strict_action_env
run --incompatible_strict_action_env
test --incompatible_strict_action_env
build --enable_runfiles
run --enable_runfiles
test --enable_runfiles
## BUILD apple
build --macos_minimum_os=13
build --host_macos_minimum_os=13
# https://bazel.build/reference/command-line-reference#flag--incompatible_strict_action_env
build --incompatible_strict_action_env
# Disable the worker, which has sandboxing disabled by default, which can hide
# issues with non-hermetic bugs.
build --spawn_strategy=sandboxed,local
build --worker_sandboxing=true
build --incompatible_disallow_empty_glob
build --features=swift.use_global_module_cache
# Enable indexing while building.
build --features swift.use_global_index_store
build --features swift.index_while_building
# Since there's no way to set the deployment version for swift_{binary,test},
# this forces all targets' minimum macOS to Github Actions macOS version.
build --macos_minimum_os=12.6
## TEST
# `bazel test` tries to build everything also by default, so skip that so the
# *_library targets in examples/... aren't built (and fail since they are
# platform specific).
test --build_tests_only
# Show detailed errors for test failures
test --test_output=errors