2021-11-08 14:20:26 +00:00
|
|
|
# Bazel settings that apply to this repository.
|
|
|
|
# Take care to document any settings that you expect users to apply.
|
2022-06-03 18:09:05 +00:00
|
|
|
# Settings that apply only to CI are in .github/workflows/ci.bazelrc.
|
2021-11-08 14:20:26 +00:00
|
|
|
|
2022-06-03 18:09:05 +00:00
|
|
|
# Allow the Bazel server to check directory sources for changes.
|
|
|
|
# Avoids warning spam with rules_nodejs feature that models node_modules as directories.
|
|
|
|
# See https://github.com/bazelbuild/rules_nodejs/releases/tag/3.6.0.
|
2021-11-17 05:30:32 +00:00
|
|
|
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
|
2021-11-08 14:20:26 +00:00
|
|
|
|
2021-12-21 22:18:34 +00:00
|
|
|
# In general, the rules in this repository assume that runfiles
|
|
|
|
# are enabled as we do not support no runfiles case.
|
|
|
|
#
|
|
|
|
# If you are developing on Windows, you must either run bazel
|
2022-08-18 21:18:33 +00:00
|
|
|
# with administrator privileges or enable developer mode. If
|
2021-12-21 22:18:34 +00:00
|
|
|
# you do not you may hit this error on Windows:
|
|
|
|
#
|
|
|
|
# Bazel needs to create symlinks to build the runfiles tree.
|
|
|
|
# Creating symlinks on Windows requires one of the following:
|
|
|
|
# 1. Bazel is run with administrator privileges.
|
|
|
|
# 2. The system version is Windows 10 Creators Update (1703) or later
|
|
|
|
# and developer mode is enabled.
|
|
|
|
build --enable_runfiles
|
|
|
|
|
2022-06-15 20:53:35 +00:00
|
|
|
common --enable_platform_specific_config
|
|
|
|
|
2022-08-22 17:59:38 +00:00
|
|
|
# For testing our --stamp behavior.
|
|
|
|
# Normally users would use a --workspace_status_command with a script that calls `git describe`.
|
|
|
|
build --embed_label=v1.2.3
|
|
|
|
|
2022-06-15 20:53:35 +00:00
|
|
|
# Turn off legacy external runfiles on all platforms except Windows.
|
2022-08-18 21:18:33 +00:00
|
|
|
# This allows our users to turn on this flag as well, which is a performance win.
|
2022-06-15 20:53:35 +00:00
|
|
|
# Skylib's diff_test implementation for Windows depends on legacy external
|
|
|
|
# runfiles so we cannot disable it fully.
|
|
|
|
build:linux --nolegacy_external_runfiles
|
|
|
|
build:macos --nolegacy_external_runfiles
|
|
|
|
build:freebsd --nolegacy_external_runfiles
|
|
|
|
build:openbsd --nolegacy_external_runfiles
|
2022-04-14 14:02:49 +00:00
|
|
|
|
2022-06-03 18:09:05 +00:00
|
|
|
# Print error messages on test failure.
|
|
|
|
test --test_output=errors
|
2022-08-18 21:18:33 +00:00
|
|
|
# Remind us to set quick tests to short
|
|
|
|
test --test_verbose_timeout_warnings
|
2022-06-03 18:09:05 +00:00
|
|
|
|
2021-11-08 14:20:26 +00:00
|
|
|
# Load any settings specific to the current user.
|
2022-06-03 18:09:05 +00:00
|
|
|
# .bazelrc.user should appear in .gitignore so that settings are not shared with team members.
|
|
|
|
# This needs to be last statement in this config, as the user configuration should be able to
|
|
|
|
# overwrite flags from this file.
|
|
|
|
# See https://docs.bazel.build/versions/master/best-practices.html#bazelrc.
|
|
|
|
# Note that we use .bazelrc.user so the file appears next to .bazelrc in directory listing,
|
|
|
|
# rather than user.bazelrc as suggested in the Bazel docs.
|
2021-11-08 14:20:26 +00:00
|
|
|
try-import %workspace%/.bazelrc.user
|