forked from upkie/upkie
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bazelrc
50 lines (38 loc) · 1.29 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Bazel configurations
## Host platform
build --compilation_mode=fastbuild
build --copt="-Werror=return-type"
build --cxxopt=-std=c++17
coverage --combined_report=lcov
coverage --compilation_mode=fastbuild
coverage --copt="-Werror=return-type"
coverage --cxxopt=-std=c++17
coverage --instrument_test_targets
test --compilation_mode=fastbuild
test --copt="-Werror=return-type"
test --cxxopt=-std=c++17
test --test_output=errors
## Linter
# Usage: bazel test --config lint //...
test:lint --build_tests_only
test:lint --test_tag_filters=lint
## Target platform: 32-bit Raspberry Pi OS
build:pi32 --compilation_mode=opt
build:pi32 --compiler=clang
build:pi32 --cpu=armeabihf
build:pi32 --crosstool_top=@rpi_bazel//tools/cc_toolchain:toolchain
test:pi32 --compilation_mode=opt
test:pi32 --compiler=clang
test:pi32 --cpu=armeabihf
test:pi32 --crosstool_top=@rpi_bazel//tools/cc_toolchain:toolchain
test:pi32 --test_output=errors
## Target platform: 64-bit Raspberry Pi OS
build:pi64 --compilation_mode=opt
build:pi64 --compiler=clang
build:pi64 --cpu=aarch64
build:pi64 --crosstool_top=@rpi_bazel//tools/cc_toolchain:toolchain
test:pi64 --compilation_mode=opt
test:pi64 --compiler=clang
test:pi64 --cpu=aarch64
test:pi64 --crosstool_top=@rpi_bazel//tools/cc_toolchain:toolchain
test:pi64 --test_output=errors