Skip to content

Commit

Permalink
Configure: simplify logic
Browse files Browse the repository at this point in the history
Replace hard-coded win32-msvc20XX mkspec names with
a variable substitution expression.

Change-Id: I4911cb3e169cd7603453d7c8a67a2a291d15c796
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
wangwenx190 committed Mar 14, 2019
1 parent b9c4add commit 85250da
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions configure.bat
Original file line number Diff line number Diff line change
Expand Up @@ -125,11 +125,8 @@ goto doneargs

:platform
shift
if "%~1" == "win32-msvc2012" goto msvc
if "%~1" == "win32-msvc2013" goto msvc
if "%~1" == "win32-msvc2015" goto msvc
if "%~1" == "win32-msvc2017" goto msvc
set PLATFORM=%~1
if "%PLATFORM:~0,10%" == "win32-msvc" goto msvc
goto nextarg
:msvc
echo. >&2
Expand Down

0 comments on commit 85250da

Please sign in to comment.