mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:55:41 +00:00
68 lines
2.5 KiB
Plaintext
68 lines
2.5 KiB
Plaintext
# bazel-1.0.0.bazelrc
|
|
|
|
# for now: filter out annoying TASTY warnings
|
|
common --ui_event_filters=-INFO
|
|
|
|
common --enable_bzlmod
|
|
|
|
# Use pre-built protoc binary instead of compiling from source
|
|
common --incompatible_enable_proto_toolchain_resolution
|
|
common --@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc=true
|
|
|
|
# Don't use toolchains_llvm for the swift app build
|
|
common:mactools --ignore_dev_dependency
|
|
|
|
# Try to speed up sandboxes
|
|
common --experimental_reuse_sandbox_directories
|
|
|
|
common --enable_platform_specific_config
|
|
|
|
common --strategy=Scalac=worker
|
|
common --worker_sandboxing
|
|
|
|
common --local_test_jobs=64
|
|
common --jobs=64
|
|
|
|
common --cxxopt="--std=c++23"
|
|
common --cxxopt="-Wno-deprecated-non-prototype"
|
|
common --host_cxxopt="--std=c++23"
|
|
|
|
common --javacopt="-Xlint:-options"
|
|
|
|
# std::filesystem and other modern C++ deps require macOS 10.15+.
|
|
common:macos --macos_minimum_os=10.15
|
|
common:macos --host_macos_minimum_os=10.15
|
|
|
|
# suppress warnings due to https://developer.apple.com/forums/thread/733317
|
|
# Use host_linkopt for macOS-specific flags to avoid passing them to Linux cross-compilation
|
|
common:macos --host_linkopt=-Wl,-no_warn_duplicate_libraries
|
|
|
|
# Workaround for grpc cf_event_engine build error on macOS with Bazel 7.x
|
|
# See: https://github.com/grpc/grpc/issues/37619
|
|
common:macos --features=-module_maps
|
|
|
|
# Pin DEVELOPER_DIR so Apple repo rules use full Xcode instead of Command Line
|
|
# Tools. The sync script writes .bazelrc.xcode with an Xcode build-version
|
|
# marker so in-place Xcode updates refresh Bazel's generated Apple toolchains.
|
|
common:macos --repo_env=DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
|
|
|
|
# Local machine or CI overrides. This lets Bazel-only runners use Command Line
|
|
# Tools without installing full Xcode. This must stay before .bazelrc.xcode so
|
|
# generated Xcode settings win when both files exist.
|
|
try-import %workspace%/.bazelrc.local
|
|
|
|
# Xcode config for macOS builds. Generated by scripts/sync_bazel_xcode.sh.
|
|
# Bakes the Xcode build version into action cache keys and sets DEVELOPER_DIR.
|
|
try-import %workspace%/.bazelrc.xcode
|
|
|
|
common --java_language_version=25
|
|
common --java_runtime_version=remotejdk_25
|
|
common --tool_java_language_version=25
|
|
common --tool_java_runtime_version=remotejdk_25
|
|
|
|
# Workspace status for build stamping (git commit, timestamp)
|
|
# Only targets with stamp=1 will use these values; we intentionally
|
|
# do NOT set "common --stamp" so non-stamped targets can share the
|
|
# remote cache across CI workflows.
|
|
common --workspace_status_command=tools/workspace_status.sh
|