Skip to content

Commit

Permalink
Treat 'relwithdebinfo' win packages when generating release page
Browse files Browse the repository at this point in the history
  • Loading branch information
dpiparo committed Nov 14, 2024
1 parent d3cd565 commit da364a9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _releases/make-release-page.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ def binaryNameToTitle(filename):

return F"macOS {macOSVers} {arch} Xcode {xcodeVers}"
elif platformCompiler.startswith('win32') or platformCompiler.startswith('win64'):
regexWin = re.compile(r'^win(32|64)[.](python3[0-9]+)[.](vc[0-9]+)(.debug)?')
regexWin = re.compile(r'^win(32|64)[.](python3[0-9]+)[.](vc[0-9]+)(.debug|.relwithdebinfo)?')
matchWin = regexWin.match(platformCompiler)
if not matchWin:
print(F'ERROR: cannot parse Win32 MSVC version for {filename}')
Expand All @@ -270,7 +270,8 @@ def binaryNameToTitle(filename):
if not debug:
debug = ''
else:
debug = ' (debug)'
# The match is ".debug" or ".relwithdebinfo"
debug = ' (' + ('debug' if debug == '.debug' else 'release with debugging information') + ')'
# see https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Internal_version_numbering
vcVersYear = {
'vc17': 2022,
Expand Down

0 comments on commit da364a9

Please sign in to comment.