This repository has been archived by the owner on Mar 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
.bazelrc-docker
36 lines (32 loc) · 1.65 KB
/
.bazelrc-docker
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
try-import %workspace%/gcb/rbe/remote.bazelrc
# TODO(#167): Remove `-Wno-deprecated-declarations` when glog is updated.
build --cxxopt='-std=c++17'
build --cxxopt='-Wall'
build --cxxopt='-Wno-deprecated-declarations'
# Why are we doing this when Souffle-generated C++ clearly uses exceptions?
# Well, Google famously does not like C++ exceptions in its internal codebase,
# so we will need to explicitly override that in Raksha files everywhere we
# build Souffle C++ code to have Raksha build when imported into Google. This
# default acts as a simulation of that property of Google's internal codebase.
#build --cxxopt='-fno-exceptions'
build --host_cxxopt='-std=c++17'
# Note: We usually try to keep the cxxopt and host_cxxopt consistent. That is
# not a good idea for this line. It appears that adding -Werror to host_cxxopt
# causes the compiler to use this flag when building dependencies that we build
# from source. This causes the build to fail if our source dependencies are not
# warning-clean. We also comment out -Wall so that we do not receive extra
# warnings from our third party packages.
# build --host_cxxopt='-Werror' --host_cxxopt='-Wall'
build --host_cxxopt='-Wno-deprecated-declarations'
# Similarly, we should not set this flag that we're using as a debugging
# assistant when compiling third party libraries.
# build --host_cxxopt='-fno-exceptions'
# ASAN config for exposing memory errors.
build:asan --strip=never
build:asan --copt -fsanitize=address
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -O1
build:asan --copt -g
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
startup --output_base=/workspace/.bazel