forked from google-deepmind/launchpad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
29 lines (23 loc) · 1 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
# 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:manylinux2010 --crosstool_top=//third_party/toolchains/preconfig/ubuntu16.04/gcc7_manylinux2010:toolchain
build -c opt
build --cxxopt="-std=c++14"
build --cxxopt="-D_GLIBCXX_USE_CXX11_ABI=0"
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.
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%/.launchpad.bazelrc