diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionFunction.java b/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionFunction.java index e2cdeef7c22d05..43b52ee730be8b 100644 --- a/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionFunction.java +++ b/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionFunction.java @@ -161,6 +161,10 @@ static ToolchainType create( return new AutoValue_ToolchainResolutionFunction_ToolchainType( toolchainTypeRequirement, toolchainTypeInfo); } + + public boolean mandatory() { + return toolchainTypeRequirement().mandatory(); + } } /** @@ -428,44 +432,40 @@ private static void determineToolchainImplementations( // Determine the potential set of toolchains. Table resolvedToolchains = HashBasedTable.create(); - ImmutableSet.Builder requiredToolchainTypesBuilder = ImmutableSet.builder(); - List