Boost C++ Libraries: Ticket #5987: Error in boost-build/jam_src/build.bat https://svn.boost.org/trac10/ticket/5987 <p> in :Start if "_%1_" == "<span class="underline">" ( </span></p> <blockquote> <p> call :Guess_Toolset if not errorlevel 1 goto Setup_Toolset </p> </blockquote> <p> ) else ( </p> <blockquote> <p> call :Test_Option "%1" if not errorlevel 1 ( &lt;-- error here </p> <blockquote> <p> call :Guess_Toolset if not errorlevel 1 goto Setup_Toolset </p> </blockquote> <p> ) else ( </p> <blockquote> <p> setlocal &amp; endlocal set "BOOST_JAM_TOOLSET=%1" shift goto Setup_Toolset </p> </blockquote> <p> ) </p> </blockquote> <p> ) </p> <p> is incorrect, will always ignore specified toolset, should be </p> <p> if "_%1_" == "<span class="underline">" ( </span></p> <blockquote> <p> call :Guess_Toolset if not errorlevel 1 goto Setup_Toolset </p> </blockquote> <p> ) else ( </p> <blockquote> <p> call :Test_Option "%1" if errorlevel 1 ( </p> <blockquote> <p> call :Guess_Toolset if not errorlevel 1 goto Setup_Toolset </p> </blockquote> <p> ) else ( </p> <blockquote> <p> setlocal &amp; endlocal set "BOOST_JAM_TOOLSET=%1" shift goto Setup_Toolset </p> </blockquote> <p> ) </p> </blockquote> <p> ) which then allows </p> <blockquote class="citation"> <p> build mingw </p> </blockquote> <p> to work correctly </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5987 Trac 1.4.3