forked from teslamotors/fixed-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
42 lines (39 loc) · 1.62 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
### CXX_FLAGS
build --per_file_copt external/.*@-g0,-O3,-fno-sanitize=all,-fexceptions
build:clang --per_file_copt external/.*@-Wno-everything,-ftrivial-auto-var-init=uninitialized
build --copt -Werror
build --copt -fno-exceptions
build --copt -ftemplate-backtrace-limit=0
build:clang --copt -ftrivial-auto-var-init=pattern
#build:clang --copt -stdlib=libc++
build:san --copt -fsanitize=address,undefined
build:san --linkopt -fsanitize=address,undefined
build:san --linkopt -fsanitize-link-c++-runtime
### DIAGNOSTICS
build:clang --copt -Weverything
# Disables C++98 to C++17 compatibility enforcement
build:clang --copt -Wno-c++98-compat-pedantic
# Re-enable, as it is disabled by the previous one
build:clang --copt -Wc++98-compat-extra-semi
build --copt -Wall
build --copt -Wextra
build --copt -Wpedantic
# This is failing on the `consteval` keyword for some reason
build --copt -Wno-c++20-compat
# Need stdlib uprev, as even std::vector triggers this
build --copt -Wno-ctad-maybe-unsupported
# Has false positives
# https://bugs.llvm.org/show_bug.cgi?id=18733
# https://stackoverflow.com/questions/56041900/why-does-explicit-template-instantiation-result-in-weak-template-vtables-warning
build:clang --copt -Wno-weak-template-vtables
#
build:clang --copt -Wno-global-constructors
build --copt -Wno-padded
# Prevents iterators from returning non-references. See also:
# https://quuxplusone.github.io/blog/2020/08/26/wrange-loop-analysis/
build:clang --copt -Wno-range-loop-bind-reference
# due to gtest
build:clang --copt -Wno-exit-time-destructors
build:clang --copt -Wno-used-but-marked-unused
#
build:clang --copt -Wno-poison-system-directories