aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java
diff options
context:
space:
mode:
authorGravatar ulfjack <ulfjack@google.com>2017-11-29 03:37:04 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2017-11-29 03:38:22 -0800
commit4d7f8f7846960ffc111cf1aef2a5efb094114442 (patch)
treed91dbe1ea83226eadb96eda6562c9a70fa0cd18d /src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java
parent91420101cf977990166acec2a0e46e1787389512 (diff)
Clean up ExecutionRequirements
- remove BaseSpawn.Local; instead, all callers pass in the full set of execution requirements they want to set - disable caching and sandboxing for the symlink tree action - it does not declare outputs, so it can't be cached or sandboxed (fixes #4041) - centralize the existing execution requirements in the ExecutionRequirements class - centralize checking for execution requirements in the Spawn class (it's possible that we may need a more decentralized, extensible design in the future, but for now having them in a single place is simple and effective) - update the documentation - forward the relevant tags to execution requirements in TargetUtils (progress on #3960) - this also contributes to #4153 PiperOrigin-RevId: 177288598
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java b/src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java
index 564460e726..3857783cb5 100644
--- a/src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java
+++ b/src/main/java/com/google/devtools/build/lib/actions/SimpleSpawn.java
@@ -82,16 +82,6 @@ public final class SimpleSpawn implements Spawn {
}
@Override
- public boolean hasNoSandbox() {
- return executionInfo.containsKey("nosandbox");
- }
-
- @Override
- public boolean isRemotable() {
- return !executionInfo.containsKey("local");
- }
-
- @Override
public final ImmutableMap<String, String> getExecutionInfo() {
return executionInfo;
}