Build setting rules shouldn't be able to use toolchain resolution.
They are part of the configuration, this would lead to cycles.
Fixes
Closes
@@ -853,6 +853,10 @@ public class RuleClass {
attrBuilder.allowedRuleClasses(ANY_RULE);
}
this.add(attrBuilder);
+
+ // Build setting rules should opt out of toolchain resolution, since they form part of the
+ // configuration.
+ this.useToolchainResolution(false);
}
return new RuleClass(
