-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.bazelrc
34 lines (26 loc) · 1.21 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
########################################
# Bzlmod Configuration
########################################
# Uncomment to build with bzlmod (i.e. use MODULE.bazel) or
# use --enable_bzlmod on the command line.
common --enable_bzlmod
# A local fork of the registry:
# common --registry=file://%workspace%/../bazel-central-registry
# Central Registry
build --registry=https://raw.githubusercontent.com/bazelbuild/bazel-central-registry/main/
########################################
# Bazel Configuration
########################################
# https://bazel.build/docs/user-manual#verbose-failures
build --verbose_failures
########################################
# C++ Configuration
########################################
build --cxxopt="-std=c++17"
build --cxxopt="-Werror"
# Silence compiler warnings for external dependencies.
# - https://github.com/bazelbuild/bazel/commit/08936aecb96f2937c61bdedfebcf1c5a41a0786d
build --features=external_include_paths
# In case that the above feature leaks some warnings, silence all warnings from the 'external' folder.
# If in the future there are warnings leaked from other 3rd libs, add more 'per_file_copt' to include their paths.
build --per_file_copt=external.*\.(cc|cpp|h|hpp|c)@-w