-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bazelrc
31 lines (23 loc) · 907 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
try-import user.bazelrc
build --incompatible_enable_cc_toolchain_resolution
build --enable_platform_specific_config
build --enable_runfiles # Needed explicitly on Windows
# Uncomment me on Windows if you have spaces in your default output_user_root (very likely).
# startup --output_user_root=C:\\bazelroot
# Windows
build:windows --features=compiler_param_file
build:windows --experimental_repository_cache C:\\bazelcache
# Linux
build:linux --copt=-std=c++17
build:linux --linkopt=-pthread --linkopt=-ldl
build:linux --experimental_repository_cache ~/.local/share/bazel
# MacOS
build:macos --copt=-std=c++17
build:macos --experimental_repository_cache ~/.local/share/bazel
# For Roborio
build:for-roborio --platforms=@bazelrio//platforms/roborio
# For Windows
build:for-windows --copt=/std:c++17
# Build flags
build --copt=-Wall --copt=-Wextra --copt=-Wpedantic --copt=-Wno-psabi
build --copt=-O2