-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.bazelrc
64 lines (56 loc) · 2.06 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
56
57
58
59
60
61
62
63
64
# Enable Bzlmod for every Bazel command
common --enable_bzlmod
build --incompatible_enable_cc_toolchain_resolution
build --features=external_include_paths
build --copt -g
build --strip=never
build --cxxopt='-fPIC'
build --host_cxxopt='-fPIC'
# We support C++20
build --host_cxxopt='-std=c++20'
build --cxxopt='-std=c++20'
# Warnings and options
build --cxxopt='-Wall'
build --cxxopt='-Wdeprecated'
build --cxxopt='-Wcomment'
build --cxxopt='-Wimplicit-fallthrough'
build --cxxopt='-Wnarrowing'
build --cxxopt='-Wnull-dereference'
build --cxxopt='-Wregister'
build --cxxopt='-Wshift-count-negative'
build --cxxopt='-Wshift-count-overflow'
build --cxxopt='-Wint-to-pointer-cast'
build --cxxopt='-Wodr'
build --cxxopt='-Wshadow-all'
build --cxxopt='-Wcall-to-pure-virtual-from-ctor-dtor'
build --cxxopt='-Wcomma'
build --cxxopt='-Wdangling'
build --cxxopt='-Winteger-overflow'
build --cxxopt='-Winvalid-noreturn'
build --cxxopt='-Wnull-arithmetic'
build --cxxopt='-Wnull-conversion'
build --cxxopt='-Wunsequenced'
build --cxxopt='-Wunreachable-code-aggressive'
build --cxxopt='-Wvoid-pointer-to-int-cast'
build --cxxopt='-Wwritable-strings'
build --cxxopt='-Wmismatched-parameter-types'
build --cxxopt='-Wmismatched-return-types'
build --cxxopt='-fno-trigraphs'
build --cxxopt='-fno-digraphs'
build --cxxopt='-ffp-model=strict'
# Warnings only enabled through clang-tidy clang-diagnostic-.. since external libs produce them.
build --cxxopt='-Wno-deprecated-copy-with-user-provided-dtor'
build --cxxopt='-Wno-deprecated-copy-with-dtor'
build --cxxopt='-Wno-deprecated-dynamic-exception-spec'
build --cxxopt='-Wno-implicit-int-conversion'
build --cxxopt='-Wno-implicit-int-float-conversion'
build --cxxopt='-Wno-float-conversion'
build --cxxopt='-Wno-implicit-float-conversion'
build --cxxopt='-Wno-shorten-64-to-32'
build --cxxopt='-Wno-comma'
build --cxxopt='-Wno-unreachable-code-break'
build --cxxopt='-Wno-unreachable-code-return'
build --cxxopt='-Wno-shadow-uncaptured-local'
# Specifically disabled warnings, overly pedantic.
build --cxxopt='-Wno-sign-compare'
build --cxxopt='-Wno-sign-conversion'