Skip to content

Commit 8fb5df2

Browse files
YO4nobu
authored andcommitted
win32/configure.bat accept empty prefix
Currently, running `win32/configure.bat --prefix=` outputs `prefix = \=/` in the Makefile. Fix this to prevent invalid values from being output.
1 parent 9348309 commit 8fb5df2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

win32/configure.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ goto :unknown_opt
133133
goto :loopend ;
134134
:dir
135135
if "%eq%" == "" call :take_arg
136-
echo>> %config_make% %opt:~2% = %arg:\=/%
136+
if defined arg set "arg=%arg:\=/%"
137+
echo>> %config_make% %opt:~2% = %arg%
137138
goto :loopend ;
138139
:enable
139140
if %enable% == yes (

0 commit comments

Comments
 (0)