mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:35:42 +00:00
Enable --incompatible_enable_proto_toolchain_resolution and --prefer_prebuilt_protoc so Bazel downloads a pre-built protoc binary from official protobuf releases rather than compiling it. Protoc plugins and the runtime library still build from source. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
53 lines
1.8 KiB
Plaintext
53 lines
1.8 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"
|
|
|
|
# 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
|
|
|
|
# Fix Xcode version caching issue - avoids need for `bazel clean --expunge` after Xcode updates
|
|
common:macos --repo_env=DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
|
|
|
|
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
|