Skip to content

Commit d587940

Browse files
committed
[feature] Add a '--debug' option to the Windows build script
1 parent ccaee68 commit d587940

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

build.bat

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,17 @@
2828
setlocal enabledelayedexpansion
2929

3030
set "TARGET=useage"
31+
set "DEBUG=false"
3132
set "OFFLINE=false"
3233
set "CONCURRENCY=-T2C"
3334

3435
:: Process arguments
3536
:parse_args
3637
if "%~1"=="" goto done_parsing
3738

38-
if /I "%~1"=="--offline" (
39+
if /I "%~1"=="--debug" (
40+
set "DEBUG=true"
41+
) else if /I "%~1"=="--offline" (
3942
set "OFFLINE=true"
4043
) else if /I "%~1"=="--help" (
4144
set "TARGET=useage"
@@ -71,6 +74,10 @@ goto parse_args
7174

7275
:done_parsing
7376

77+
if "%DEBUG%"=="true" (
78+
set "BASE_CMD=%BASE_CMD% --debug"
79+
)
80+
7481
if "%OFFLINE%"=="true" (
7582
set "BASE_CMD=%BASE_CMD% --offline"
7683
)
@@ -119,7 +126,7 @@ goto end
119126

120127
:show_useage
121128
echo.
122-
echo Usage: build.bat [--offline] ^<target^> ^| --help
129+
echo Usage: build.bat [--debug] [--offline] ^<target^> ^| --help
123130
echo.
124131
echo Available build targets:
125132
echo clean - Remove all built artifacts

0 commit comments

Comments
 (0)