Meta: Add compiler arguments to the debug build mode

This commit is contained in:
Timothy Flynn 2025-05-30 17:10:17 -04:00 committed by Tim Flynn
parent 6f9e56870e
commit 667a568526

View File

@ -73,12 +73,15 @@ def main():
debug_parser = subparsers.add_parser(
"debug",
help="Launches the application on the build host in a gdb or lldb session",
parents=[preset_parser, target_parser],
parents=[preset_parser, compiler_parser, target_parser],
)
debug_parser.add_argument("--debugger", required=False, default=platform.default_debugger())
debug_parser.add_argument(
"-cmd", action="append", required=False, default=[], help="Additional commands passed through to the debugger"
)
debug_parser.add_argument(
"args", nargs=argparse.REMAINDER, help="Additional arguments passed through to the build system"
)
subparsers.add_parser(
"install", help="Installs the target binary", parents=[preset_parser, compiler_parser, target_parser]