diff options
author | tomlu <tomlu@google.com> | 2018-06-19 12:55:39 -0700 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2018-06-19 12:57:05 -0700 |
commit | 09fe0620a616bcc8d8a900e98f7c67526d132370 (patch) | |
tree | 9df3de3ba92e18084279a1235b81661ed8eca4bf /src/main/java/com/google/devtools/build/lib/exec | |
parent | 0fb66160de7cd6013c0d719376c47b3a66a874dc (diff) |
Add --materialize_param_files option.
When set, any action parameter files are written locally upon action execution, even when the action is executed remotely. This is mainly useful for debugging.
This option is effectively implied by --subcommands and --verbose_failures, as it is likely that the user is debugging actions when using these flags.
RELNOTES: Add --materialize_param_files flag to write parameter files even when actions are executed remotely.
PiperOrigin-RevId: 201225566
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/exec')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java b/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java index 9f9e3351b4..ec006b9bbd 100644 --- a/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java +++ b/src/main/java/com/google/devtools/build/lib/exec/ExecutionOptions.java @@ -49,6 +49,16 @@ public class ExecutionOptions extends OptionsBase { public static final ExecutionOptions DEFAULTS = Options.getDefaults(ExecutionOptions.class); @Option( + name = "materialize_param_files", + defaultValue = "false", + documentationCategory = OptionDocumentationCategory.UNCATEGORIZED, + effectTags = {OptionEffectTag.UNKNOWN}, + help = + "Writes intermediate parameter files to output tree even when using " + + "remote action execution. Useful when debugging actions. ") + public boolean materializeParamFiles; + + @Option( name = "verbose_failures", defaultValue = "false", documentationCategory = OptionDocumentationCategory.UNCATEGORIZED, |