diff options
author | 2018-06-07 15:05:17 -0700 | |
---|---|---|
committer | 2018-06-07 15:06:31 -0700 | |
commit | 6afc2eb67675e928bc8fa10c5d1745223186b6e0 (patch) | |
tree | b5ad8053993f7c414aae51d0c971bc24fb6c6ac3 /src/main/java/com/google/devtools/build/lib/rules/python/PythonSemantics.java | |
parent | 5e893626640351de0f12e36bb14d80af0ff1e036 (diff) |
Automated rollback of commit f137cea0ac74334013e7b064e59d1624cf032ac4.
*** Reason for rollback ***
See linked bug.
*** Original change description ***
C++: Refactors PyWrapCc to make it easier to migrate to Skylark
RELNOTES:none
PiperOrigin-RevId: 199702630
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.java | 18 |
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); } |