-
Notifications
You must be signed in to change notification settings - Fork 1
Add skip-debug flag to prepare.py build script #7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
Co-authored-by: Revincx <25524750+Revincx@users.noreply.github.com>
Co-authored-by: Revincx <25524750+Revincx@users.noreply.github.com>
Co-authored-by: Revincx <25524750+Revincx@users.noreply.github.com>
Co-authored-by: Revincx <25524750+Revincx@users.noreply.github.com>
|
@copilot Please help me add For example: You should check all stages of all libraries and determine where the scope marker should be added. Note: the scope markers can be combined and take effects at the same time, such as |
Co-authored-by: Revincx <25524750+Revincx@users.noreply.github.com>
I've added debug scope markers to all library debug-specific build commands. The changes include: 20 library stages updated with debug scope markers:
All stages with debug builds now have proper scope markers, so the Commit: This change is in the latest commit. |
Co-authored-by: Revincx <25524750+Revincx@users.noreply.github.com>
Overview
This PR adds a
skip-debugflag feature to theTelegram/build/prepare/prepare.pyscript, mirroring the existingskip-releaseflag functionality. This allows users to skip all debug build procedures when building libraries, which can significantly reduce build time when only release binaries are needed.Changes
Added support for the
skip-debugcommand-line flag inprepare.py:'skip-debug'to theoptionsList(line 63)filterByPlatform()function (lines 259-263)win_debug:andwin_release:for Windows buildsmac_debug:andmac_release:for macOS buildswin32_debug:,win64_debug:,winarm_debug:where neededThe implementation follows the exact same pattern as the existing
skip-releaseflag for consistency.Libraries Updated
All 20 library stages with debug builds now have proper debug scope markers:
How It Works
The prepare.py script uses scope markers to conditionally execute build commands:
debug:- Commands that run for debug buildsrelease:- Commands that run for release buildswin_debug:,mac_debug:, etc. - Platform-specific debug buildswin32_debug:,win64_debug:,winarm_debug:- Architecture-specific debug buildsWhen the
skip-debugflag is provided, any build commands marked with adebugscope are filtered out and not executed.Usage
Example
Library stages now use debug scope markers:
When users run
python prepare.py skip-debug, only the release build will execute, saving build time.Benefits
skip-releaseflagTesting
skip-releaseOriginal prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.