aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java
index 54353d5f89..34f6819afd 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java
@@ -246,8 +246,11 @@ public class RunCommand implements BlazeCommand {
options.getOptions(BuildRequestOptions.class).getSymlinkPrefix());
List<String> cmdLine = new ArrayList<>();
if (runOptions.scriptPath == null) {
+ PathFragment processWrapperPath = runtime.getBinTools().getExecPath(PROCESS_WRAPPER);
+ Preconditions.checkNotNull(
+ processWrapperPath, PROCESS_WRAPPER + " not found in embedded tools");
cmdLine.add(runtime.getDirectories().getExecRoot()
- .getRelative(runtime.getBinTools().getExecPath(PROCESS_WRAPPER)).getPathString());
+ .getRelative(processWrapperPath).getPathString());
cmdLine.add("-1");
cmdLine.add("15");
cmdLine.add("-");