-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.bazelrc
More file actions
48 lines (40 loc) · 1.66 KB
/
Copy path.bazelrc
File metadata and controls
48 lines (40 loc) · 1.66 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
47
48
# Common
common --enable_bzlmod
common:windows --enable_runfiles
# Build
build --jobs=auto
build --experimental_reuse_sandbox_directories
# Version stamping (LOOPAL_VERSION from git describe)
build --stamp
build --workspace_status_command=tools/version_stamp.sh
# Test
test --test_output=errors
test --notest_verbose_timeout_warnings
test --test_env=HOME
# Platform configs for cross-compilation
build:linux-x86 --platforms=//:linux-x86_64
build:linux-arm --platforms=//:linux-aarch64
build:macos-x86 --platforms=//:macos-x86_64
build:macos-arm --platforms=//:macos-aarch64
build:windows-x86 --platforms=//:windows-x86_64
# CI config
build:ci --disk_cache=~/.cache/bazel-disk
build:ci --repository_cache=~/.cache/bazel-repo
test:ci --test_output=all
# Rust branch coverage
coverage:rust_branch --combined_report=lcov
coverage:rust_branch --experimental_fetch_all_coverage_outputs
coverage:rust_branch --experimental_split_coverage_postprocessing
coverage:rust_branch --@rules_rust//rust/settings:extra_rustc_env=RUSTC_BOOTSTRAP=1
coverage:rust_branch --@rules_rust//rust/settings:extra_rustc_flag=-Zcoverage-options=branch
# LLVM 21.1.8 (bundled with Rust 1.94) can crash while exporting branch maps
# from async/generic Rust test binaries. The branch-only toolchain setting pins
# both producer and collector to Rust 1.92/LLVM 21.1.3 without changing the
# compiler used by ordinary builds and tests.
build:rust_branch --//:rust_branch_toolchain=true
# Clippy
build:clippy --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect
build:clippy --output_groups=clippy_checks
# Rustfmt
build:rustfmt --aspects=@rules_rust//rust:defs.bzl%rustfmt_aspect
build:rustfmt --output_groups=rustfmt_checks