Skip to content

Commit

Permalink
SolibSymlinkAction does not need exec platform or properties
Browse files Browse the repository at this point in the history
#14826

Closes #14827.

PiperOrigin-RevId: 447948011
  • Loading branch information
glukasiknuro authored and copybara-github committed May 11, 2022
1 parent b4b8b26 commit 519d2da
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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<String, String> getExecProperties() {
// SolibSymlinkAction is platform agnostic.
return ImmutableMap.of();
}
}

0 comments on commit 519d2da

Please sign in to comment.