We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 11e9f3d + 686575d commit 54a857cCopy full SHA for 54a857c
1 file changed
appveyor.bat
@@ -27,6 +27,13 @@ for /F "delims=.-+ tokens=1-3" %%I in ("%VER_NUM%") do (
27
set "PATCHLEVEL=%%K"
28
)
29
30
+:: PATCHLEVEL comes from tags like v9.2.0068.
31
+:: rc (and the C preprocessor) treat 0-prefixed numbers as octal, so 0068 breaks.
32
+:: Keep the original padded patchlevel, but normalize PATCHLEVEL to a plain decimal number.
33
+set "PATCHLEVEL_PADDED=%PATCHLEVEL%"
34
+for /F "tokens=* delims=0" %%P in ("%PATCHLEVEL_PADDED%") do set "PATCHLEVEL=%%P"
35
+if not defined PATCHLEVEL set "PATCHLEVEL=0"
36
+
37
if /I "%ARCH%"=="x64" (
38
set "BIT=64"
39
) else (
0 commit comments