Add compilerFlagForMigrationDoNotUse field to cc_common
This will help migration from config_setting.values{"compiler"} to config_setting.flag_values{"@bazel_tools//tools/cpp:compiler"}
RELNOTES: None.
@@ -32,4 +32,14 @@ public interface CcModuleApi {
structField = true
)
public ProviderApi getCcToolchainProvider();
+
+ @Deprecated
+ @SkylarkCallable(
+ name = "do_not_use_tools_cpp_compiler_present",
+ doc =
+ "Do not use this field, its only puprose is to help with migration from "
+ + "config_setting.values{'compiler') to "
+ + "config_settings.flag_values{'@bazel_tools//tools/cpp:compiler'}",
+ structField = true)
+ default void compilerFlagExists() {}
}
