forked from ankitects/anki
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
47 lines (33 loc) · 1.47 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
common --enable_platform_specific_config
common --experimental_repository_cache_hardlinks
# runfiles are off by default on Windows, and we need them
build --enable_runfiles
# skip the slow zip step on Windows, as we have symlinks
build:windows --build_python_zip=false
# record version/build hash
build --workspace_status_command='bash ./tools/status.sh'
# support macOS 10.13+
build:macos --action_env="MACOSX_DEPLOYMENT_TARGET=10.13"
build:macos --macos_minimum_os=10.13
# run clippy when compiling rust in test mode
test --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect --output_groups=+clippy_checks
# print output when test fails
test --test_output=errors
# stop after one test failure
test --notest_keep_going
# don't add empty __init__.py files
build --incompatible_default_to_explicit_init_py
# custom output for CI
build:ci --show_timestamps --isatty=0 --color=yes --show_progress_rate_limit=5
# 'opt' config is an alias for building with optimizations
build:opt -c opt
# the TypeScript workers on Windows choke when deps are changed while they're
# still running, so shut them down at the end of the build.
build:windows --worker_quit_after_build
# place convenience symlinks inside a single folder for easier exclusion in IDEs
build --symlink_prefix=.bazel/
# if (auto-created) windows.bazelrc exists, import it
try-import %workspace%/windows.bazelrc
# allow extra user customizations in a separate file
# (see .user.bazelrc for an example)
try-import %workspace%/user.bazelrc