aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java
diff options
context:
space:
mode:
authorGravatar janakr <janakr@google.com>2018-02-14 17:14:51 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-14 17:16:43 -0800
commit9565666426a94dc81f4173e2a60375bde59ce253 (patch)
tree333eec8de899198aade372b3d05c3baa0b81ac37 /src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java
parentf4c5314803d2f2fdd1c6a37324f7f2ebd2d908ca (diff)
Get PlatformInfo out of ToolchainResolutionKey, replace with the ConfiguredTargetKeys that own the PlatformInfo.
PiperOrigin-RevId: 185770105
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java b/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java
index f71c3bdf07..69ab59926c 100644
--- a/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java
+++ b/src/main/java/com/google/devtools/build/lib/skyframe/ToolchainResolutionValue.java
@@ -37,10 +37,10 @@ public abstract class ToolchainResolutionValue implements SkyValue {
public static SkyKey key(
BuildConfigurationValue.Key configurationKey,
Label toolchainType,
- PlatformInfo targetPlatform,
- List<PlatformInfo> availableExecutionPlatforms) {
+ ConfiguredTargetKey targetPlatformKey,
+ List<ConfiguredTargetKey> availableExecutionPlatformKeys) {
return ToolchainResolutionKey.create(
- configurationKey, toolchainType, targetPlatform, availableExecutionPlatforms);
+ configurationKey, toolchainType, targetPlatformKey, availableExecutionPlatformKeys);
}
/** {@link SkyKey} implementation used for {@link ToolchainResolutionFunction}. */
@@ -55,20 +55,20 @@ public abstract class ToolchainResolutionValue implements SkyValue {
public abstract Label toolchainType();
- public abstract PlatformInfo targetPlatform();
+ abstract ConfiguredTargetKey targetPlatformKey();
- abstract ImmutableList<PlatformInfo> availableExecutionPlatforms();
+ abstract ImmutableList<ConfiguredTargetKey> availableExecutionPlatformKeys();
static ToolchainResolutionKey create(
BuildConfigurationValue.Key configuration,
Label toolchainType,
- PlatformInfo targetPlatform,
- List<PlatformInfo> availableExecutionPlatforms) {
+ ConfiguredTargetKey targetPlatformKey,
+ List<ConfiguredTargetKey> availableExecutionPlatformKeys) {
return new AutoValue_ToolchainResolutionValue_ToolchainResolutionKey(
configuration,
toolchainType,
- targetPlatform,
- ImmutableList.copyOf(availableExecutionPlatforms));
+ targetPlatformKey,
+ ImmutableList.copyOf(availableExecutionPlatformKeys));
}
}