mirror of
https://github.com/nolen777/eagle0.git
synced 2026-07-28 22:35:42 +00:00
* Decouple non-Mac builds from Xcode via BAZEL_NO_APPLE_CPP_TOOLCHAIN Set BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 in .bazelrc so apple_support skips Xcode detection (xcode-locator) entirely for Scala/C++/Go builds. Only mactools builds (Mac/Sparkle) re-enable the Apple CC toolchain. This means Xcode version changes no longer affect Eagle, Shardok, test, auth, docker, or Unity Windows builds — no expunge, no cache invalidation, no rebuild. The sync script and its expunge/cache-key logic are now scoped to mactools only and removed from all non-Mac CI workflows. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> * Revert BAZEL_NO_APPLE_CPP_TOOLCHAIN; keep Apple CC with stable environ BAZEL_NO_APPLE_CPP_TOOLCHAIN=1 broke builds because apple_support registers platforms (e.g. macos_x86_64) that require Apple CC toolchains for resolution — even in non-Mac builds. Instead, keep Apple CC enabled but ensure its repo rule never re-evaluates on non-Mac builds by keeping DEVELOPER_DIR pinned in common:macos. The sync script only runs for mactools builds and overrides DEVELOPER_DIR there. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
58 lines
2.0 KiB
Plaintext
58 lines
2.0 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
|
|
|
|
# Pin DEVELOPER_DIR so the apple_cc_autoconf repo rule doesn't re-evaluate
|
|
# when Xcode updates in-place. The sync script overrides this for mactools.
|
|
common:macos --repo_env=DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
|
|
|
|
# Xcode config for mactools builds only. 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
|