diff options
author | 2017-05-09 11:26:14 -0400 | |
---|---|---|
committer | 2017-05-09 13:07:19 -0400 | |
commit | 006a80425e7dd521634c5735d2730f40e9e82e06 (patch) | |
tree | e9490d43a3d23e2ddef905f3a6612eb127edfb83 /src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java | |
parent | 8970b43c42197378e93339584d27063d082a512d (diff) |
Make the cc_toolchain libc_top use the target configuration
The removes redundancy from the logic around calculating the sysroot (and was been a TODO since 2014!)
RELNOTES: None
PiperOrigin-RevId: 155506682
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java b/src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java index fc44f09b70..5984de833e 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/JavaHelper.java @@ -145,7 +145,8 @@ public abstract class JavaHelper { /** Returns the artifacts required to invoke {@code javahome} relative binary in the action. */ public static NestedSet<Artifact> getHostJavabaseInputs( RuleContext ruleContext, String implicitAttributesSuffix) { - return AnalysisUtils.getMiddlemanFor(ruleContext, ":host_jdk" + implicitAttributesSuffix); + return AnalysisUtils.getMiddlemanFor( + ruleContext, ":host_jdk" + implicitAttributesSuffix, Mode.HOST); } /** |