Don't apply a host-configuration transition to the module_map attribute.
This file is a data file that corresponds to header files compiled for the target, and so it should be evaluated in the target configuration.
@@ -273,7 +273,7 @@ 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().cfg(HostTransition.createFactory()))
+ .add(attr("module_map", LABEL).legacyAllowAnyFileType())
/* <!-- #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 -->*/
