From 1c45f4908df86450820bff034714f3f0177016fe Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 9 Oct 2023 02:59:29 -0700 Subject: [PATCH] Remove the documentation for cc_toolchain.cpu and cc_toolchain.compiler . The attributes themselves were removed in https://github.com/bazelbuild/bazel/commit/0567176074348037ec9d8ee32544784e1e319a10. RELNOTES: None. PiperOrigin-RevId: 571882966 Change-Id: I1996408e4dc9d330754ad68510971f8d9e5e3e88 --- .../build/lib/rules/cpp/CcToolchainRule.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchainRule.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchainRule.java index 81da6d1304230a..07ca1abd305d28 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchainRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/CcToolchainRule.java @@ -17,7 +17,6 @@ import static com.google.devtools.build.lib.packages.BuildType.LABEL; import static com.google.devtools.build.lib.packages.BuildType.LICENSE; import static com.google.devtools.build.lib.packages.Type.BOOLEAN; -import static com.google.devtools.build.lib.packages.Type.STRING; import com.google.devtools.build.lib.analysis.BaseRuleClasses; import com.google.devtools.build.lib.analysis.PlatformConfiguration; @@ -62,28 +61,6 @@ public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env) .requiresConfigurationFragments(CppConfiguration.class, PlatformConfiguration.class) .advertiseProvider(TemplateVariableInfo.class) .add(attr("output_licenses", LICENSE)) - /* - Deprecated. Use toolchain_identifier attribute instead. It will be a noop after - CROSSTOOL migration to Starlark - , and will be removed by - #7075. - -

When set, it will be used to perform crosstool_config.toolchain selection. It will take - precedence over --cpu Bazel option.

- */ - .add(attr("cpu", STRING).nonconfigurable("Used in configuration creation")) - /* - Deprecated. Use toolchain_identifier attribute instead. It will be a noop - after - - CROSSTOOL migration to Starlark - , and will be removed by - #7075. - -

When set, it will be used to perform crosstool_config.toolchain selection. It will take - precedence over --cpu Bazel option.

- */ - .add(attr("compiler", STRING).nonconfigurable("Used in configuration creation")) /* Collection of all cc_toolchain artifacts. These artifacts will be added as inputs to all rules_cc related actions (with the exception of actions that are using more precise sets of