diff options
author | 2016-08-04 11:55:20 +0000 | |
---|---|---|
committer | 2016-08-04 12:27:58 +0000 | |
commit | 31b059fc07831f86be951609128b7cd51613df98 (patch) | |
tree | 759918beef35dccf48cbdf80f55e09c7da26154b /src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java | |
parent | 8639d9d7261ccd5a6f0907b47e053712648f5519 (diff) |
Short-circuit runfiles tree creation if runfiles are disabled (for example, on Windows by default)
--
MOS_MIGRATED_REVID=129319018
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/runtime/commands/RunCommand.java | 5 |
1 files changed, 2 insertions, 3 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 7cdfc0d2d9..26dda275a6 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 @@ -63,7 +63,6 @@ import com.google.devtools.common.options.Option; import com.google.devtools.common.options.OptionsBase; import com.google.devtools.common.options.OptionsParser; import com.google.devtools.common.options.OptionsProvider; - import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.ArrayList; @@ -374,8 +373,8 @@ public class RunCommand implements BlazeCommand { } SymlinkTreeHelper helper = new SymlinkTreeHelper( - manifest.getExecPath(), - runfilesDir, + manifest.getPath(), + runfilesSupport.getRunfilesDirectory(), false); helper.createSymlinksUsingCommand(env.getExecRoot(), target.getConfiguration(), env.getBlazeWorkspace().getBinTools()); |