From 707e8d4f22bef8b609688ec9a3bac8f08b3c0a4c Mon Sep 17 00:00:00 2001 From: Chenchu Kolli Date: Thu, 12 May 2022 09:26:20 -0500 Subject: [PATCH] SolibSymlinkAction does not need exec platform or properties (#15474) https://github.com/bazelbuild/bazel/issues/14826 Closes #14827. PiperOrigin-RevId: 447948011 Co-authored-by: Grzegorz Lukasik --- .../build/lib/rules/cpp/SolibSymlinkAction.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/com/google/devtools/build/lib/rules/cpp/SolibSymlinkAction.java b/src/main/java/com/google/devtools/build/lib/rules/cpp/SolibSymlinkAction.java index 7522ac0b0803c3..6d0ec849b97fcf 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/cpp/SolibSymlinkAction.java +++ b/src/main/java/com/google/devtools/build/lib/rules/cpp/SolibSymlinkAction.java @@ -15,6 +15,7 @@ package com.google.devtools.build.lib.rules.cpp; import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import com.google.devtools.build.lib.actions.AbstractAction; import com.google.devtools.build.lib.actions.ActionAnalysisMetadata; @@ -29,6 +30,7 @@ import com.google.devtools.build.lib.actions.ArtifactRoot; import com.google.devtools.build.lib.analysis.RuleContext; import com.google.devtools.build.lib.analysis.actions.ActionConstructionContext; +import com.google.devtools.build.lib.analysis.platform.PlatformInfo; import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder; import com.google.devtools.build.lib.collect.nestedset.Order; @@ -287,4 +289,17 @@ public boolean shouldReportPathPrefixConflict(ActionAnalysisMetadata action) { public boolean mayInsensitivelyPropagateInputs() { return true; } + + @Override + @Nullable + public PlatformInfo getExecutionPlatform() { + // SolibSymlinkAction is platform agnostic. + return null; + } + + @Override + public ImmutableMap getExecProperties() { + // SolibSymlinkAction is platform agnostic. + return ImmutableMap.of(); + } }