| # Simulate a non-functional CC toolchain |
| common --per_file_copt=external/.*protobuf.*/src/google/protobuf/compiler/main.cc@--THIS_CC_TOOLCHAIN_IS_BROKEN |
| common --host_per_file_copt=external/.*protobuf.*/src/google/protobuf/compiler/main.cc@--THIS_CC_TOOLCHAIN_IS_BROKEN |
| # But, users should be able to use pre-built protoc toolchains instead. |
| common --incompatible_enable_proto_toolchain_resolution |
| common --@com_google_protobuf//bazel/toolchains:prefer_prebuilt_protoc |
| |
| # Import Bazel 9 specific flags (such as --repo_contents_cache) |
| # TODO: Remove it when --repo_contents_cache issue has been resolved in bazel |
| try-import-if-bazel-version >=9.0.0 %workspace%/../../ci/bazel9.bazelrc |