aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-04-05 19:40:35 +0000
committerGravatar Marcel Hlopko <hlopko@google.com>2017-04-06 11:00:27 +0200
commit459f1300ff234da7d79b1887bd08edb734f79970 (patch)
tree9dcee2da1f3f102298b583bab190facbce02786d /src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
parentd119f969a30945a1fc29a24a293f6873ff73960d (diff)
Add mechanism to trigger Python type-stripping via a tag.
RELNOTES: none PiperOrigin-RevId: 152291766
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
index a04a0eda11..74fdc2fcd8 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java
@@ -125,7 +125,7 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory {
} else {
builder.addTransitiveArtifacts(common.getFilesToBuild());
}
- builder.addRunfiles(ruleContext, RunfilesProvider.DEFAULT_RUNFILES);
+ semantics.collectDefaultRunfiles(ruleContext, builder);
builder.add(ruleContext, PythonRunfilesProvider.TO_RUNFILES);
builder.setEmptyFilesSupplier(PythonUtils.GET_INIT_PY_FILES);
semantics.collectRunfilesForBinary(ruleContext, builder, common);