From ec720e94e975d3894f569c189d3682b4969276c9 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Thu, 5 Oct 2023 20:11:29 -0400 Subject: [PATCH] script: add option for debug build See: https://github.com/ceph/ceph-build/pull/2167 Signed-off-by: Patrick Donnelly --- src/script/ptl-tool.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/script/ptl-tool.py b/src/script/ptl-tool.py index 110fa9e3af9fd..095fceb41fc04 100755 --- a/src/script/ptl-tool.py +++ b/src/script/ptl-tool.py @@ -250,6 +250,8 @@ def get_credits(session, pr, pr_req): def build_branch(args): base = args.base branch = datetime.datetime.utcnow().strftime(args.branch).format(user=USER) + if args.debug_build: + branch = branch + "-debug" label = args.label merge_branch_name = args.merge_branch_name if merge_branch_name is False: @@ -389,6 +391,7 @@ def main(): else: argv = sys.argv[1:] parser.add_argument('--branch', dest='branch', action='store', default=default_branch, help='branch to create ("HEAD" leaves HEAD detached; i.e. no branch is made)') + parser.add_argument('--debug-build', dest='debug_build', action='store_true', help='append -debug to branch name prompting ceph-build to build with CMAKE_BUILD_TYPE=Debug') parser.add_argument('--merge-branch-name', dest='merge_branch_name', action='store', default=False, help='name of the branch for merge messages') parser.add_argument('--base', dest='base', action='store', default=default_base, help='base for branch') parser.add_argument('--base-path', dest='base_path', action='store', default=BASE_PATH, help='base for branch') -- 2.39.5