-
Notifications
You must be signed in to change notification settings - Fork 51
/
.bazelrc
33 lines (24 loc) · 875 Bytes
/
.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
# SPDX-License-Identifier: MIT-0
# Don't use bzlmod yet.
common --enable_workspace=true
common --enable_bzlmod=false
# Default to an optimized build.
build --compilation_mode=opt
# Default build options.
build --strip=never
# Default test options.
build --test_output=errors
build --test_summary=terse
# Use C++20.
build --cxxopt=-std=c++20
build --host_cxxopt=-std=c++20
# https://github.com/bazelbuild/bazel/issues/1164
build --action_env=CCACHE_DISABLE=1
# For Ubuntu builds, this flag can cut build times in half. For macOS builds,
# this flag might cause build errors. We suggest turning it on if and only if
# your project doesn't use macOS.
## build --force_pic=yes
# TODO(jwnimmer-tri) We should see if we can reuse more of Drake's
# customizations somehow.
# Try to import user-specific configuration local to workspace.
try-import %workspace%/user.bazelrc