-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
47 lines (42 loc) · 1.36 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
build --cxxopt='-std=c++20'
build --cxxopt='-Wall'
build --cxxopt='-Wextra'
build --cxxopt='-Wmisleading-indentation'
build --cxxopt='-Wduplicated-cond'
build --cxxopt='-Wduplicated-branches'
build --cxxopt='-Wlogical-op'
build --cxxopt='-Wuseless-cast'
build --cxxopt='-Wshadow'
build --cxxopt='-Wnon-virtual-dtor'
build --cxxopt='-Wold-style-cast'
build --cxxopt='-Wcast-align'
build --cxxopt='-Wunused'
build --cxxopt='-Woverloaded-virtual'
build --cxxopt='-Wpedantic'
build --cxxopt='-Wconversion'
build --cxxopt='-Wsign-conversion'
build --cxxopt='-Wnull-dereference'
build --cxxopt='-Wdouble-promotion'
build --cxxopt='-Wformat=2'
build --cxxopt='-Wimplicit-fallthrough'
# Enabling sanitizers: https://stackoverflow.com/a/57733619/15827495
build:asan --strip=never
build:asan --copt -fsanitize=address
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -O3
build:asan --copt -g
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
build:ubsan --strip=never
build:ubsan --copt -fsanitize=undefined
build:ubsan --copt -O3
build:ubsan --copt -g
build:ubsan --copt -fno-omit-frame-pointer
build:ubsan --linkopt -fsanitize=undefined
# Both ubsan and asan
build:san --strip=never
build:san --copt -fsanitize=undefined,address
build:san --copt -O3
build:san --copt -g
build:san --copt -fno-omit-frame-pointer
build:san --linkopt -fsanitize=undefined,address