summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jiakai Zhang <jiakaiz@google.com> 2022-11-14 18:53:41 +0000
committer Treehugger Robot <treehugger-gerrit@google.com> 2022-11-15 09:02:19 +0000
commitadf67c598d53d0820a213650ba94f6ce954db0ef (patch)
tree05beddb6ad8b3f4ae283a1a26ea3a15f94d73ed9
parent36b520b285e8c7a1f2b83918346af585920c0f05 (diff)
Add a flag "--comments" for debugging information.
Bug: 249016777 Test: Presubmit Change-Id: I9fc9fa86b8cd442f29793743d3b7d6ffb5965628
-rw-r--r--dex2oat/dex2oat_options.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/dex2oat/dex2oat_options.cc b/dex2oat/dex2oat_options.cc
index 1f9138e8ff..e9ff28b3e6 100644
--- a/dex2oat/dex2oat_options.cc
+++ b/dex2oat/dex2oat_options.cc
@@ -448,7 +448,8 @@ Parser CreateDex2oatArgumentParser() {
.IntoKey(M::ForceJitZygote)
.Define("--force-palette-compilation-hooks")
.WithHelp("Force PaletteNotify{Start,End}Dex2oatCompilation calls.")
- .IntoKey(M::ForcePaletteCompilationHooks);
+ .IntoKey(M::ForcePaletteCompilationHooks)
+ .Ignore({"--comments=_"});
AddCompilerOptionsArgumentParserOptions<Dex2oatArgumentMap>(*parser_builder);