Update cc_toolchain to properly declare config transitions on module_map.
This appears to have been missed in probably due to syncing past without noticing that it removed a transition that needed to be replaced.
@@ -294,7 +294,11 @@ public final class CcToolchainRule implements RuleDefinition {
/* <!-- #BLAZE_RULE(cc_toolchain).ATTRIBUTE(module_map) -->
Module map artifact to be used for modular builds.
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
- .add(attr("module_map", LABEL).legacyAllowAnyFileType())
+ .add(
+ attr("module_map", LABEL)
+ .legacyAllowAnyFileType()
+ // Should be in the target configuration
+ .cfg(NoTransition.createFactory()))
/* <!-- #BLAZE_RULE(cc_toolchain).ATTRIBUTE(supports_param_files) -->
Set to True when cc_toolchain supports using param files for linking actions.
<!-- #END_BLAZE_RULE.ATTRIBUTE -->*/
