mirror of
https://github.com/boostorg/build.git
synced 2026-02-15 00:52:16 +00:00
Allow specifying options with quotes, i.e. "--with-python=xyz", to work around the CMD shell using "=" as an argument separator.
[SVN r40095]
This commit is contained in:
@@ -40,7 +40,7 @@ goto :eof
|
||||
|
||||
|
||||
:Test_Option
|
||||
REM Tests wether the given string is in the form of an option: "-*"
|
||||
REM Tests wether the given string is in the form of an option: "--*"
|
||||
setlocal & endlocal
|
||||
setlocal
|
||||
set test=%1
|
||||
@@ -48,7 +48,7 @@ set test=###%test%###
|
||||
set test=%test:"###=%
|
||||
set test=%test:###"=%
|
||||
set test=%test:###=%
|
||||
if not [-] == [%test:~0,1%] set _error_=
|
||||
if not [-] == [%test:~1,1%] set _error_=
|
||||
endlocal
|
||||
goto :eof
|
||||
|
||||
|
||||
@@ -55,13 +55,15 @@ if $(with-python)
|
||||
{
|
||||
--python-lib ?=
|
||||
[ GLOB [ .path $(python-location) libs ] : "python$(v).lib" ]
|
||||
[ GLOB $(python-location) $(Path) $(PATH) $(path) : "python$(v).dll" ]
|
||||
[ GLOB $(python-location) [ .path $(python-location) libs ]
|
||||
$(Path) $(PATH) $(path) : "python$(v).dll" ]
|
||||
;
|
||||
if ! $(--python-lib[2])
|
||||
{
|
||||
--python-lib = ;
|
||||
}
|
||||
}
|
||||
--python-lib = $(--python-lib[1]) ;
|
||||
}
|
||||
else if $(OS) = MACOSX
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user