Skip to content

Commit

Permalink
Address review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Dec 4, 2023
1 parent bb2b267 commit 52de68e
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,15 @@ default boolean precomputeTransitiveLoads() {

private final List<TargetPattern> registeredExecutionPlatforms = new ArrayList<>();
private final List<TargetPattern> registeredToolchains = new ArrayList<>();

/**
* Tracks the index within {@link #registeredToolchains} of the first toolchain registered from
* the WORKSPACE suffixes rather than the WORKSPACE file (if any).
*
* <p>This is needed to distinguish between these toolchains during resolution: toolchains
* registered in WORKSPACE have precedence over those defined in non-root Bazel modules,
* which in turn have precedence over those from the WORKSPACE suffixes.</p>
*/
private OptionalInt firstWorkspaceSuffixRegisteredToolchain = OptionalInt.empty();

/**
Expand Down

0 comments on commit 52de68e

Please sign in to comment.