This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit d0c7d2dd8848bf5a0b382f42f9f881815793c712
Author: Petro Karashchenko <petro.karashche...@gmail.com>
AuthorDate: Sat Nov 12 01:24:02 2022 +0200

    tools: fix arguments passing in configure.bat
    
    Signed-off-by: Petro Karashchenko <petro.karashche...@gmail.com>
---
 tools/configure.bat | 18 ++++++++++++++++--
 1 file changed, 16 insertions(+), 2 deletions(-)

diff --git a/tools/configure.bat b/tools/configure.bat
index 5f7336c7f8..66c4f06484 100755
--- a/tools/configure.bat
+++ b/tools/configure.bat
@@ -33,6 +33,8 @@ set tooldir=%CD%
 rem Parse command line arguments
 
 set debug=
+set enforce_distclean=
+set distclean=
 set fmt=-b
 set posix=
 set help=
@@ -44,11 +46,15 @@ set hostopt=
 if "%1"=="" goto :NoConfig
 if "%1"=="-h" goto :ShowUsage
 if "%1"=="-d" goto :SetDebug
+if "%1"=="-E" goto :SetEnforceDistclean
+if "%1"=="-e" goto :SetDistclean
 if "%1"=="-f" goto :SetFormat
 if "%1"=="-b" goto :SetFormat
 if "%1"=="-l" goto :SetHostOption
+if "%1"=="-m" goto :SetHostOption
 if "%1"=="-c" goto :SetHostOption
 if "%1"=="-n" goto :SetHostOption
+if "%1"=="-B" goto :SetHostOption
 if "%1"=="-L" goto :SetList
 if "%1"=="-a" goto :SetAppDir
 
@@ -59,6 +65,14 @@ goto EndOfLoop
 set debug=%1
 goto :NextArg
 
+:SetEnforceDistclean
+set enforce_distclean=%1
+goto :NextArg
+
+:SetDistclean
+set distclean=%1
+goto :NextArg
+
 :SetFormat
 set fmt=%1
 goto :NextArg
@@ -91,13 +105,13 @@ echo %cc% %cflags% -o configure.exe configure.c cfgparser.c
 %cc% %cflags% -o configure.exe configure.c cfgparser.c
 if errorlevel 1 (
   echo ERROR: %cc% failed
-  echo Is ming32-gcc.exe installed?  Is it in the PATH variable?
+  echo Is mingw32-gcc.exe installed?  Is it in the PATH variable?
   goto End
 )
 
 :HaveConfigureExe
 cd ..
-tools\configure.exe %debug% %fmt% %hostopt% %appdir% %config% %list%
+tools\configure.exe %debug% %enforce_distclean% %distclean% %fmt% %hostopt% 
%appdir% %config% %list%
 if errorlevel 1 echo configure.exe failed
 goto End
 

Reply via email to