aboutsummaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorLiam Miller-Cushon <cushon@google.com>2021-02-26 17:01:14 -0800
committerJavac Team <javac-team+copybara@google.com>2021-02-26 17:01:43 -0800
commitaabe1f4166b54f2826b08d93f396ac1a9ec16e8e (patch)
tree9f38195716d287db7f64419c788a01ad8a10aaf3 /java
parent27418aaf8b1837bb481916471d55c5d3c448978a (diff)
downloadturbine-aabe1f4166b54f2826b08d93f396ac1a9ec16e8e.tar.gz
Allow turbine to parse JavaBuilder command lines
Add a couple of aliases, and skip some flags that only apply to JavaBuilder. PiperOrigin-RevId: 359867369
Diffstat (limited to 'java')
-rw-r--r--java/com/google/turbine/options/TurbineOptionsParser.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/java/com/google/turbine/options/TurbineOptionsParser.java b/java/com/google/turbine/options/TurbineOptionsParser.java
index 353edfe..f2bd5e0 100644
--- a/java/com/google/turbine/options/TurbineOptionsParser.java
+++ b/java/com/google/turbine/options/TurbineOptionsParser.java
@@ -100,6 +100,7 @@ public final class TurbineOptionsParser {
case "--sources":
builder.setSources(readList(argumentDeque));
break;
+ case "--output_deps_proto":
case "--output_deps":
builder.setOutputDeps(readOne(argumentDeque));
break;
@@ -140,6 +141,7 @@ public final class TurbineOptionsParser {
case "--profile":
builder.setProfile(readOne(argumentDeque));
break;
+ case "--generated_sources_output":
case "--gensrc_output":
builder.setGensrcOutput(readOne(argumentDeque));
break;
@@ -149,6 +151,14 @@ public final class TurbineOptionsParser {
case "--help":
builder.setHelp(true);
break;
+ case "--experimental_fix_deps_tool":
+ case "--strict_java_deps":
+ case "--native_header_output":
+ case "--compress_jar":
+ // these flags don't apply to turbine, but are accepted (and ignored) for compatibility
+ // with JavaBuilder command lines
+ readOne(argumentDeque);
+ break;
default:
throw new IllegalArgumentException("unknown option: " + next);
}