From 9f6e52e5978133d4c831a62f62fdf0666b93776e Mon Sep 17 00:00:00 2001 From: Grzegorz Lukasik Date: Tue, 15 Feb 2022 10:14:00 -0800 Subject: [PATCH] SolibSymlinkAction does not need exec platform or properties https://github.com/bazelbuild/bazel/issues/14826 --- .../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 c42f1245b56bbf..2aeb126ebffda4 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; @@ -282,4 +284,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(); + } }