Skip to content

Commit

Permalink
SolibSymlinkAction does not need exec platform or properties
Browse files Browse the repository at this point in the history
  • Loading branch information
glukasiknuro committed Feb 16, 2022
1 parent f712e6a commit 9f6e52e
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 9f6e52e

Please sign in to comment.