mirror of
https://github.com/vale981/ray
synced 2025-03-06 02:21:39 -05:00

* Fix common.fbs rename (due to apache/arrow/commit/bef9a1c251397311a6415d3dc362ef419d154caa) * Add missing COPTS * Use socketpair(AF_INET) if boost::asio::local is unavailable (e.g. on Windows) * Fix compile bug in service_based_gcs_client_test.cc (fix build breakage in #6686) * Work around googletest/gmock inability to specify override to avoid -Werror,-Winconsistent-missing-override * Fix missing override on IsPlasmaBuffer() * Fix missing libraries for streaming * Factor out install-toolchains.sh * Put some Bazel flags into .bazelrc * Fix jni_md.h missing inclusion * Add ~/bin to PATH for Bazel * Change echo $$(date) > $@ to date > $@ * Fix lots of unquoted paths * Add system() call checks for Windows Co-authored-by: GitHub Web Flow <noreply@github.com>
59 lines
2.9 KiB
Text
59 lines
2.9 KiB
Text
# Must be first. Enables build:windows, build:linux, build:macos, build:freebsd, build:openbsd
|
|
build --enable_platform_specific_config
|
|
###############################################################################
|
|
build --action_env=BAZEL_LLVM
|
|
build --action_env=BAZEL_SH
|
|
build --action_env=PATH
|
|
build --action_env=PYTHON2_BIN_PATH
|
|
build --action_env=PYTHON3_BIN_PATH
|
|
# Use Clang-Cl (Clang front-end with Visual C++ backend) on Windows
|
|
build --action_env=USE_CLANG_CL=1
|
|
build:linux --compilation_mode=opt
|
|
build:macos --compilation_mode=opt
|
|
build:windows --compilation_mode=fastbuild
|
|
# This workaround is needed to prevent Bazel from compiling the same file twice (once PIC and once not).
|
|
build:linux --force_pic
|
|
build:macos --force_pic
|
|
# 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
|
|
# Warnings should be errors
|
|
build --per_file_copt="-\\.(asm|S)$,-.*/arrow/util/logging\\.cc@-Werror"
|
|
# Ignore warnings for protobuf generated files and external projects.
|
|
build --per_file_copt="-\\.(asm|S)$,\\.pb\\.cc$@-w"
|
|
build --per_file_copt="-\\.(asm|S)$,external/.*@-w"
|
|
# Ignore this warning since it's impractical to fix in the relevant headers
|
|
build --per_file_copt="-\\.(asm|S)$,.*/ray/raylet/reconstruction_policy_test\\.cc@-Wno-inconsistent-missing-override"
|
|
# 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"
|
|
# This workaround is needed due to https://github.com/bazelbuild/bazel/issues/4341
|
|
build --per_file_copt="-\\.(asm|S)$,external/com_github_grpc_grpc/.*@-DGRPC_BAZEL_BUILD"
|
|
build --http_timeout_scaling=5.0
|
|
build:iwyu --experimental_action_listener=//:iwyu_cpp
|
|
# 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
|
|
|
|
# Print relative paths when possible
|
|
build:windows --attempt_to_print_relative_paths
|
|
# Save disk space by hardlinking cache hits instead of copying
|
|
build:windows --experimental_repository_cache_hardlinks
|
|
# Avoid duplicate noise in the build output
|
|
build:windows --experimental_ui_deduplicate
|
|
# Clean the environment before building, to make builds more deterministic
|
|
build:windows --incompatible_strict_action_env
|
|
# For colored output (seems necessary on Windows)
|
|
build:windows --color=yes
|
|
# For compiler colored output (seems necessary on Windows)
|
|
build:windows --per_file_copt="-\\.(asm|S)$@-fansi-escape-codes"
|
|
build:windows --per_file_copt="-\\.(asm|S)$@-fcolor-diagnostics"
|
|
|
|
# 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
|