Skip to content

Commit

Permalink
add debug message for skipped toolchain resolution
Browse files Browse the repository at this point in the history
RELNOTES: added additional debug message to warn of skipped toolchains during resolution
PiperOrigin-RevId: 475900663
Change-Id: I6e5c79838c27c9ff416135c3d8afdb79e15c8f9a
  • Loading branch information
Googler authored and copybara-github committed Sep 21, 2022
1 parent e3e5445 commit 4e7d2a2
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,14 @@ private static SingleToolchainResolutionValue resolveConstraints(
for (ConfiguredTargetKey executionPlatformKey : availableExecutionPlatformKeys) {
// Only check the toolchains if this is a new platform.
if (platformKeysSeen.contains(executionPlatformKey)) {
debugMessage(
eventHandler,
" Type %s: target platform %s: execution platform %s: Skipping toolchain %s;"
+ " execution platform already has selected toolchain",
toolchainType.toolchainType(),
targetPlatform.label(),
executionPlatformKey.getLabel(),
toolchain.toolchainLabel());
continue;
}

Expand Down

0 comments on commit 4e7d2a2

Please sign in to comment.