Repository navigation
Expand file tree
/
Copy path.bazelrc
More file actions
46 lines (35 loc) · 1.87 KB
/
Copy path.bazelrc
File metadata and controls
46 lines (35 loc) · 1.87 KB
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
# The output root is placed in `.cache` (see `bazel/shim.py`), and the repo contents cache cannot live in-tree.
common --repo_contents_cache=
# Keeps the convenience symlinks out of the repository root.
build --symlink_prefix=.cache/bazel-
# The pinned LLVM toolchain is the only C toolchain. Bazel would otherwise
# also configure whatever compiler the host offers.
common --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
# The oldest macOS the artifacts run on. Bazel otherwise passes the host's
# own version, which then varies with the builder.
build --host_macos_minimum_os=14.0
build --macos_minimum_os=14.0
# Only `just lock` rewrites the lock; a stale one fails everywhere else, so
# no host Bazel can quietly change what CI then trusts.
common --lockfile_mode=error
# A build script that fetched would make every pin advisory.
build --nosandbox_default_allow_network
# Reusing sandbox directories skips most input staging.
build --reuse_sandbox_directories
# Fixed directories let the devshell and a plain shell share one action cache.
# They exist on POSIX hosts only, so a Windows host keeps its own PATH.
common --enable_platform_specific_config
build:linux --action_env=PATH=/usr/bin:/bin:/usr/sbin:/sbin
build:macos --action_env=PATH=/usr/bin:/bin:/usr/sbin:/sbin
# A failed action prints its full command line.
build --verbose_failures
# Builds follow Cargo's dev profile unless `-c opt` asks for release. No Rust
# toolchain matches `fastbuild`, which has no Cargo counterpart.
#
# `--//bazel:portable` swaps the `.cargo/config.toml` floor for each target's own baseline.
build --compilation_mode=dbg
# Fat LTO needs bitcode in every rlib, and rules_rust asks for none. The flag
# is single-valued, so a later setting must repeat this one.
build --@rules_rust//rust/settings:extra_rustc_flags=-Cembed-bitcode=yes
# Per-developer settings, ignored by git.
try-import %workspace%/.bazelrc.user