-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
55 lines (43 loc) · 1.4 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
51
52
53
54
55
common --show_timestamps
common --color=yes
# enable bazel module
build --enable_bzlmod
run --enable_bzlmod
test --enable_bzlmod
test --test_arg=--list-tests
build --verbose_failures
build --spawn_strategy=local
build --strategy=Genrule=local
build --action_env=PATH
build --action_env=LD_LIBRARY_PATH
build --action_env=LIBRARY_PATH
build --action_env=CPLUS_INCLUDE_PATH
build --host_action_env=CPLUS_INCLUDE_PATH
build --action_env=CC
build --action_env=CXX
build --copt=-Wall
build --copt=-Werror=return-type --copt=-Wno-maybe-uninitialized --copt=-Werror=switch
build --cxxopt -std=c++2a
build --host_cxxopt -std=c++2a
build --incompatible_enable_proto_toolchain_resolution
build --noenable_bzlmod
build --noincompatible_enable_cc_toolchain_resolution
# math optimizations that do not affect the results, we enable them for all build to ensure
# consistent behaviors
build --copt=-fno-trapping-math --copt=-fno-math-errno --copt=-fno-signed-zeros
# include debug information in non-dbg builds
build:debuginfo --copt -g
build:debuginfo --strip=never
# build for 64-bit arch
build --copt -m64
build:opt -c opt
build:opt --copt=-O3
build:opt --copt=-march=native
build:opt-less -c opt
build:opt-less --copt=-O3
# with these we can use --config dbg/opt without typeing -c dbg/opt
build:dbg -c dbg
build:dbg --copt -g
build:dbg --strip=never
#build:dbg --copt=-fsanitize=address
#build:dbg --linkopts=-fsanitize=address