2020-11-01 05:26:58 +01:00
|
|
|
common --enable_platform_specific_config
|
|
|
|
common --experimental_repository_cache_hardlinks
|
|
|
|
|
2020-12-23 12:51:26 +01:00
|
|
|
# specify python path for pyo3 compile
|
2021-10-02 12:42:03 +02:00
|
|
|
build:windows --action_env="PYO3_PYTHON=c:/python/python.exe"
|
2021-10-04 07:05:15 +02:00
|
|
|
#build:linux --action_env="PYO3_PYTHON=/usr/local/bin/python3.9"
|
2020-11-01 05:26:58 +01:00
|
|
|
|
2021-02-04 10:07:34 +01:00
|
|
|
# only affects the ankihelper library
|
|
|
|
#build:macos --macos_cpus=x86_64,arm64
|
|
|
|
|
2020-11-01 05:26:58 +01:00
|
|
|
# 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 ./scripts/status.sh'
|
|
|
|
|
|
|
|
# run clippy when compiling rust in test mode
|
2021-03-27 09:39:02 +01:00
|
|
|
test --aspects=@rules_rust//rust:rust.bzl%rust_clippy_aspect --output_groups=+clippy_checks
|
2020-11-01 05:26:58 +01:00
|
|
|
|
|
|
|
# print output when test fails
|
|
|
|
test --test_output=errors
|
|
|
|
|
|
|
|
# don't add empty __init__.py files
|
|
|
|
build --incompatible_default_to_explicit_init_py
|
|
|
|
|
2021-07-24 02:12:25 +02:00
|
|
|
build:ci --show_timestamps --isatty=0 --color=yes --show_progress_rate_limit=5
|
2021-06-24 07:01:32 +02:00
|
|
|
build:opt -c opt
|
2021-03-30 09:01:59 +02:00
|
|
|
|
|
|
|
# the TypeScript workers on Windows choke when deps are changed while they're
|
2021-04-09 04:48:24 +02:00
|
|
|
# still running, so shut them down at the end of the build.
|
2021-03-30 09:01:59 +02:00
|
|
|
build:windows --worker_quit_after_build
|
|
|
|
|
2020-11-04 13:11:28 +01:00
|
|
|
try-import %workspace%/user.bazelrc
|