Skip to content

Commit 4e7d2a2

Browse files
Googlercopybara-github
Googler
authored andcommitted
add debug message for skipped toolchain resolution
RELNOTES: added additional debug message to warn of skipped toolchains during resolution PiperOrigin-RevId: 475900663 Change-Id: I6e5c79838c27c9ff416135c3d8afdb79e15c8f9a
1 parent e3e5445 commit 4e7d2a2

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/main/java/com/google/devtools/build/lib/skyframe/SingleToolchainResolutionFunction.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,14 @@ private static SingleToolchainResolutionValue resolveConstraints(
181181
for (ConfiguredTargetKey executionPlatformKey : availableExecutionPlatformKeys) {
182182
// Only check the toolchains if this is a new platform.
183183
if (platformKeysSeen.contains(executionPlatformKey)) {
184+
debugMessage(
185+
eventHandler,
186+
" Type %s: target platform %s: execution platform %s: Skipping toolchain %s;"
187+
+ " execution platform already has selected toolchain",
188+
toolchainType.toolchainType(),
189+
targetPlatform.label(),
190+
executionPlatformKey.getLabel(),
191+
toolchain.toolchainLabel());
184192
continue;
185193
}
186194

0 commit comments

Comments
 (0)