2019-12-17 17:33:33 -08:00
|
|
|
# Must be first. Enables build:windows, build:linux, build:macos, build:freebsd, build:openbsd
|
|
|
|
build --enable_platform_specific_config
|
|
|
|
###############################################################################
|
2019-11-18 20:54:23 -08:00
|
|
|
build --action_env=BAZEL_LLVM
|
|
|
|
build --action_env=BAZEL_SH
|
2019-03-23 10:44:11 +08:00
|
|
|
build --action_env=PATH
|
2019-11-08 15:58:28 -08:00
|
|
|
build --action_env=PYTHON2_BIN_PATH
|
|
|
|
build --action_env=PYTHON3_BIN_PATH
|
2019-11-18 20:54:23 -08:00
|
|
|
# Use Clang-Cl (Clang front-end with Visual C++ backend) on Windows
|
|
|
|
build --action_env=USE_CLANG_CL=1
|
2019-12-17 17:33:33 -08:00
|
|
|
build:linux --compilation_mode=opt
|
|
|
|
build:macos --compilation_mode=opt
|
|
|
|
build:windows --compilation_mode=fastbuild
|
2019-12-01 15:05:50 -08:00
|
|
|
# TODO(mehrdadn): Revert the "-\\.(asm|S)$" exclusion when this Bazel bug
|
|
|
|
# for compiling assembly files is fixed on Windows:
|
|
|
|
# https://github.com/bazelbuild/bazel/issues/8924
|
2019-08-07 14:04:05 -07:00
|
|
|
# Warnings should be errors
|
2019-12-01 15:05:50 -08:00
|
|
|
build --per_file_copt="-\\.(asm|S)$,-.*/arrow/util/logging\\.cc@-Werror"
|
2019-08-07 14:04:05 -07:00
|
|
|
# Ignore warnings for protobuf generated files and external projects.
|
2019-12-01 15:05:50 -08:00
|
|
|
build --per_file_copt="-\\.(asm|S)$,\\.pb\\.cc$@-w"
|
|
|
|
build --per_file_copt="-\\.(asm|S)$,external/.*@-w"
|
2019-11-18 20:54:23 -08:00
|
|
|
# Ignore minor warnings for host tools, which we generally can't control
|
|
|
|
build --host_copt="-Wno-builtin-macro-redefined"
|
|
|
|
build --host_copt="-Wno-inconsistent-missing-override"
|
|
|
|
build --host_copt="-Wno-microsoft-unqualified-friend"
|
2019-06-17 19:00:50 +08:00
|
|
|
# This workaround is needed due to https://github.com/bazelbuild/bazel/issues/4341
|
2019-12-01 15:05:50 -08:00
|
|
|
build --per_file_copt="-\\.(asm|S)$,external/com_github_grpc_grpc/.*@-DGRPC_BAZEL_BUILD"
|
2019-08-19 16:26:58 -07:00
|
|
|
build --http_timeout_scaling=5.0
|
2019-11-08 15:58:28 -08:00
|
|
|
# This workaround is due to an incompatibility of
|
|
|
|
# bazel_common/tools/maven/pom_file.bzl with Bazel 1.0
|
|
|
|
build --incompatible_depset_is_not_iterable=false
|
2020-01-05 16:18:21 -08:00
|
|
|
|
|
|
|
# Thread sanitizer configuration:
|
|
|
|
build:tsan --strip=never
|
|
|
|
build:tsan --copt -fsanitize=thread
|
|
|
|
build:tsan --copt -DTHREAD_SANITIZER
|
|
|
|
build:tsan --copt -g
|
|
|
|
build:tsan --copt -fno-omit-frame-pointer
|
|
|
|
build:tsan --linkopt -fsanitize=thread
|