aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/analysis/config
diff options
context:
space:
mode:
authorGravatar Kristina Chodorow <kchodorow@google.com>2016-08-25 14:17:30 +0000
committerGravatar John Cater <jcater@google.com>2016-08-25 20:19:17 +0000
commit94e2742db235c7bf7d254a8d5a4c10ff3495c656 (patch)
tree73b820e3c97457f3836d63396b943b707e8f4b4b /src/main/java/com/google/devtools/build/lib/analysis/config
parente001d731814255d9e41561442339f3feec590bc2 (diff)
Remove ArtifactFactory dependency on incorrect exec root
Somewhat trickily, this changes the execRoot field from referring to [output_base]/execroot/wsname (not really the exec root) to [output_base]/execroot (actually the execroot). Progress on #1681. -- MOS_MIGRATED_REVID=131286181
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/analysis/config')
-rw-r--r--src/main/java/com/google/devtools/build/lib/analysis/config/BinTools.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/config/BinTools.java b/src/main/java/com/google/devtools/build/lib/analysis/config/BinTools.java
index eb8af1801f..6ff3203be1 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/config/BinTools.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/config/BinTools.java
@@ -137,7 +137,7 @@ public final class BinTools {
public Artifact getEmbeddedArtifact(String embedPath, ArtifactFactory artifactFactory) {
PathFragment path = getExecPath(embedPath);
Preconditions.checkNotNull(path, embedPath + " not found in embedded tools");
- return artifactFactory.getDerivedArtifact(path);
+ return artifactFactory.getDerivedArtifact(path, binDir.getParentDirectory());
}
public ImmutableList<Artifact> getAllEmbeddedArtifacts(ArtifactFactory artifactFactory) {