-
Notifications
You must be signed in to change notification settings - Fork 25
/
.bazelrc
28 lines (21 loc) · 1.11 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
startup --batch_cpu_scheduling --io_nice_level=7 --macos_qos_class=background
build --jobs=32
build --incompatible_strict_action_env
# Set the default compiler to the `clang` binary on the `PATH`.
build --repo_env=CC=clang --repo_env=CXX=clang++
# C++14 standard version is required.
build --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
# The Clang available on MacOS has a warning that isn't clean on MLIR code. The
# warning doesn't show up with more recent Clangs, so just disable for now.
build --cxxopt=-Wno-range-loop-analysis --host_cxxopt=-Wno-range-loop-analysis
# Use `-Wall` and `-Werror` for Clang.
build --copt=-Wall --copt=-Werror --host_copt=-Wall --host_copt=-Werror
# This doesn't appear to be enforced by any upstream bot.
build --copt=-Wno-unused --host_copt=-Wno-unused
# To build zlib
# TODO: remove if https://github.com/madler/zlib/issues/633 is resolved
build --copt=-Wno-deprecated-non-prototype
build --host_copt=-Wno-deprecated-non-prototype
# TODO: remove the following two lines once all of us move to Clang 15+
build --copt=-Wno-unknown-warning-option
build --host_copt=-Wno-unknown-warning-option