diff options
author | 2025-02-04 10:29:59 -0800 | |
---|---|---|
committer | 2025-02-04 10:29:59 -0800 | |
commit | 0e4aa8c17498306c41ef91c722cb9f8f6e289ddc (patch) | |
tree | c07dca5e5033479b196c7d5271feb5853e2b9122 | |
parent | 297ee1877ea3755e1fae282cf9af1ce1fc332329 (diff) |
soongdbg: add argument for location of soongdbg info
This can simplify comparing things between two versions of soong.
Bug: None
Test: manual
Change-Id: Id0bafd2970f831fddfd9a655787a61fe380723ec
-rwxr-xr-x | bin/soongdbg | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/soongdbg b/bin/soongdbg index 080729136..dad51372e 100755 --- a/bin/soongdbg +++ b/bin/soongdbg @@ -450,13 +450,17 @@ SOONG_DEBUG_DATA_FILENAME = pathlib.Path(OUT_DIR).joinpath("soong/soong-debug-in def main(): + global SOONG_DEBUG_DATA_FILENAME parser = argparse.ArgumentParser() + parser.add_argument("-f", "--debug-file", nargs=1, help="location of the debug info file", + default=[SOONG_DEBUG_DATA_FILENAME]) subparsers = parser.add_subparsers(required=True, dest="command") for name in sorted(COMMANDS.keys()): command = COMMANDS[name] subparser = subparsers.add_parser(name, help=command.help) command.args(subparser) args = parser.parse_args() + SOONG_DEBUG_DATA_FILENAME = args.debug_file[0] COMMANDS[args.command].run(args) sys.exit(0) |