diff options
author | 2016-07-12 15:45:16 +0000 | |
---|---|---|
committer | 2016-07-13 11:15:36 +0000 | |
commit | d3369e975da65db58657a2a746ef927f5d6456bd (patch) | |
tree | 9c03c402976e26120c2ee478a60b82e23a168359 /src/main/java/com | |
parent | cdb17bde1142d3a1201d58d583965106be6d4adb (diff) |
Use canonical Java 7 javacopts in JavaProtoAspect
--
MOS_MIGRATED_REVID=127203325
Diffstat (limited to 'src/main/java/com')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java index aad0e51d72..718fe91fc7 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java +++ b/src/main/java/com/google/devtools/build/lib/rules/java/proto/JavaProtoAspect.java @@ -264,7 +264,7 @@ public class JavaProtoAspect extends NativeAspectClass implements ConfiguredAspe JavaToolchainProvider toolchain = JavaToolchainProvider.fromRuleContext(ruleContext); ImmutableList.Builder<String> listBuilder = ImmutableList.builder(); listBuilder.addAll(toolchain.getJavacOptions()); - listBuilder.add("-source", "7", "-target", "7"); + listBuilder.addAll(toolchain.getCompatibleJavacOptions(JavaSemantics.JAVA7_JAVACOPTS_KEY)); return listBuilder.build(); } |