aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java
diff options
context:
space:
mode:
authorGravatar cpeyser <cpeyser@google.com>2018-06-08 13:23:22 -0700
committerGravatar Copybara-Service <copybara-piper@google.com>2018-06-08 13:24:50 -0700
commit6d0de4337482b65509374f672c06fd9af81eea18 (patch)
treea2bbdf42e99a33fdf6fe89fa87c3feb0e6eb7e6c /src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java
parentc34d6ee17570afc6e8b3942ab170d70758251bfd (diff)
Automated rollback of commit 6c87715b8ac6b32e636ba307440e2b7362b10a48.
RELNOTES:none PiperOrigin-RevId: 199840978
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java b/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java
index 2ca0bc2c53..ee282cbe00 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java
@@ -17,10 +17,9 @@ import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.analysis.RuleContext;
import com.google.devtools.build.lib.analysis.Runfiles;
import com.google.devtools.build.lib.analysis.RunfilesSupport;
-import com.google.devtools.build.lib.analysis.TransitiveInfoCollection;
import com.google.devtools.build.lib.analysis.test.InstrumentedFilesCollector.InstrumentationSpec;
import com.google.devtools.build.lib.collect.nestedset.NestedSet;
-import com.google.devtools.build.lib.rules.cpp.CcLinkingInfo;
+import com.google.devtools.build.lib.rules.cpp.AbstractCcLinkParamsStore;
import com.google.devtools.build.lib.vfs.PathFragment;
import java.util.Collection;
import java.util.List;
@@ -37,13 +36,10 @@ public interface PythonSemantics {
*/
void validate(RuleContext ruleContext, PyCommon common);
- /** Extends for the default and data runfiles of {@code py_binary} rules with custom elements. */
- void collectRunfilesForBinary(
- RuleContext ruleContext,
- Runfiles.Builder builder,
- PyCommon common,
- CcLinkingInfo ccLinkingInfo)
- throws InterruptedException;
+ /**
+ * Extends for the default and data runfiles of {@code py_binary} rules with custom elements.
+ */
+ void collectRunfilesForBinary(RuleContext ruleContext, Runfiles.Builder builder, PyCommon common);
/** Extends the default runfiles of {@code py_binary} rules with custom elements. */
void collectDefaultRunfilesForBinary(RuleContext ruleContext, Runfiles.Builder builder)
@@ -76,7 +72,7 @@ public interface PythonSemantics {
Artifact createExecutable(
RuleContext ruleContext,
PyCommon common,
- CcLinkingInfo ccLinkingInfo,
+ AbstractCcLinkParamsStore ccLinkParamsStore,
NestedSet<PathFragment> imports)
throws InterruptedException;
@@ -86,6 +82,4 @@ public interface PythonSemantics {
*/
void postInitBinary(RuleContext ruleContext, RunfilesSupport runfilesSupport,
PyCommon common) throws InterruptedException;
-
- CcLinkingInfo buildCcLinkingInfoProvider(Iterable<? extends TransitiveInfoCollection> deps);
}