Replace the deprecated C++ compiler marker with None (#808) Replace the Java-backed cc_common.do_not_use_tools_cpp_compiler_present marker with its existing Starlark value, None. Bazel declares the deprecated marker as a Java void struct field, so preserving the exported field with None removes the Java dependency without changing compatibility. Validation: buildifier -mode=check and 24 passing //tests/cc/common:cc_common_tests cases. Closes #808 COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/808 from dzbarsky:codex/starlarkify-compiler-presence-marker 56865fdaf446fde183d9a04df2b814de7aa885d6 PiperOrigin-RevId: 971880864 Change-Id: I3ccfd7ded563d4d5d2791761327d8bcbdcf18a34
diff --git a/cc/private/cc_common.bzl b/cc/private/cc_common.bzl index a63bfea..8a289e3 100644 --- a/cc/private/cc_common.bzl +++ b/cc/private/cc_common.bzl
@@ -730,7 +730,7 @@ # Ideally we would like to get rid of this Java symbol and replace it with Starlark one. # And also deprecate this public API. CcToolchainInfo = CcToolchainInfo, - do_not_use_tools_cpp_compiler_present = _cc_common_internal.do_not_use_tools_cpp_compiler_present, + do_not_use_tools_cpp_compiler_present = None, configure_features = configure_features, get_tool_for_action = _get_tool_for_action, get_execution_requirements = _get_execution_requirements,