-
Notifications
You must be signed in to change notification settings - Fork 7
/
.bazelrc
30 lines (25 loc) · 1.07 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
# Enable build:{linux,mac} directives in the rc file
common --enable_platform_specific_config
# Enable Bzlmod for every Bazel command.
common --enable_bzlmod
# Enable bazel_local_registry.
#
# TODO: b/376301639 - Remove the local registry once Arolla is available through
# the central registry.
common --registry=file:%workspace%/bazel_local_registry
common --registry=https://bcr.bazel.build
# Disable the automatic creation of `__init__.py` files, as it prevents the use
# of namespace packages during build time.
#
# The expectation is that this will eventually become the default behavior:
# https://github.com/bazelbuild/bazel/issues/7386#issuecomment-1806973756
build --incompatible_default_to_explicit_init_py
# Enable modern C++ features
build:linux --cxxopt=-std=gnu++20
build:linux --host_cxxopt=-std=gnu++20
build:macos --cxxopt=-std=gnu++20
build:macos --host_cxxopt=-std=gnu++20
# Set the minimum compatible version of macOS (consider consulting
# https://endoflife.date/macos for versions of macOS that are currently
# maintained).
build:macos --macos_minimum_os=12.0