diff options
author | Florian Weikert <fwe@google.com> | 2015-09-14 13:35:34 +0000 |
---|---|---|
committer | Kristina Chodorow <kchodorow@google.com> | 2015-09-14 15:40:49 +0000 |
commit | 4b67d4fed1f4ca8e4b1dd7dce47061b6b3779860 (patch) | |
tree | eb79083b8d1335d71b27e69d6003d7e7ef12ad72 /src/main/java/com/google/devtools/build/lib/rules/python/PyBinary.java | |
parent | 835ec9e63b9788b7d573cb78fa27b8cbfb5732d9 (diff) |
Prevented catching/wrapping of InterruptedExceptions, especially in BaseFunction.
--
MOS_MIGRATED_REVID=102988766
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.java | 6 |
1 files changed, 3 insertions, 3 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 a60e0d7e88..9cd591a909 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 @@ -40,7 +40,7 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory { protected abstract PythonSemantics createSemantics(); @Override - public ConfiguredTarget create(RuleContext ruleContext) { + public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException { PyCommon common = new PyCommon(ruleContext); common.initCommon(common.getDefaultPythonVersion()); @@ -51,8 +51,8 @@ public abstract class PyBinary implements RuleConfiguredTargetFactory { return builder.build(); } - static RuleConfiguredTargetBuilder init( - RuleContext ruleContext, PythonSemantics semantics, PyCommon common) { + static RuleConfiguredTargetBuilder init(RuleContext ruleContext, PythonSemantics semantics, + PyCommon common) throws InterruptedException { CcLinkParamsStore ccLinkParamsStore = initializeCcLinkParamStore(ruleContext); List<Artifact> srcs = common.validateSrcs(); |