mirror of
https://github.com/bazel-contrib/bazel-lib
synced 2024-11-25 11:32:33 +00:00
32 lines
1.6 KiB
Plaintext
32 lines
1.6 KiB
Plaintext
# Bazel settings that apply to this repository.
|
|
# Take care to document any settings that you expect users to apply.
|
|
# Settings that apply only to CI are in .github/workflows/ci.bazelrc
|
|
|
|
# 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
|
|
startup --host_jvm_args=-DBAZEL_TRACK_SOURCE_DIRECTORIES=1
|
|
|
|
# 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
|
|
# with administrator priviledges or enable developer mode. If
|
|
# 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
|
|
|
|
# Load any settings specific to the current user.
|
|
# .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)
|
|
try-import %workspace%/.bazelrc.user
|