SolibSymlinkAction does not need exec platform or properties
Closes
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.Artifact;
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 final class SolibSymlinkAction extends AbstractAction {
public boolean mayInsensitivelyPropagateInputs() {
return true;
}
+
+ @Override
+ @Nullable
+ public PlatformInfo getExecutionPlatform() {
+ // SolibSymlinkAction is platform agnostic.
+ return null;
+ }
+
+ @Override
+ public ImmutableMap<String, String> getExecProperties() {
+ // SolibSymlinkAction is platform agnostic.
+ return ImmutableMap.of();
+ }
}
