-
Notifications
You must be signed in to change notification settings - Fork 93
/
.bazelrc
32 lines (26 loc) · 1.17 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
# gRPC using libcares in opensource has some issues.
build --define=grpc_no_ares=true
# Suppress all warning messages.
build:short_logs --output_filter=DONT_MATCH_ANYTHING
# Force python3
build --action_env=PYTHON_BIN_PATH=python3
build --repo_env=PYTHON_BIN_PATH=python3
build --python_path=python3
build:manylinux2014 --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2014:toolchain
build -c opt
build --cxxopt="-std=c++17"
build --host_cxxopt="-std=c++17"
# We can remove this flag (we keep it explicit for now)
build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1"
build --host_cxxopt="-D_GLIBCXX_USE_CXX11_ABI=1"
build --auto_output_filter=subpackages
build --copt="-Wall" --copt="-Wno-sign-compare"
build --linkopt="-lrt -lm"
# We build with AVX and eigen byte alignment to match tensorflow's (and Eigen)
# pip package byte alignment. See b/186669968 for more details.
build --copt=-mavx --copt=-DEIGEN_MAX_ALIGN_BYTES=64
# TF isn't built in dbg mode, so our dbg builds will segfault due to inconsistency
# of defines when using tf's headers. In particular in refcount.h.
build --cxxopt="-DNDEBUG"
# Options from ./configure
try-import %workspace%/.reverb.bazelrc