summaryrefslogtreecommitdiffstats
path: root/configure.bat
diff options
context:
space:
mode:
authorYuhang Zhao <2546789017@qq.com>2019-03-14 10:28:30 +0800
committerYuhang Zhao <2546789017@qq.com>2019-03-14 12:13:58 +0000
commit85250da09d91117141815db6aa88d77b03fbb436 (patch)
treef4b9bba869e2e3eba4d783a9a8cea4d56cb281d0 /configure.bat
parentb9c4add832f7d872d86e4383073e9b6e39220776 (diff)
Configure: simplify logic
Replace hard-coded win32-msvc20XX mkspec names with a variable substitution expression. Change-Id: I4911cb3e169cd7603453d7c8a67a2a291d15c796 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'configure.bat')
-rw-r--r--configure.bat5
1 files changed, 1 insertions, 4 deletions
diff --git a/configure.bat b/configure.bat
index 79dcfe352d..b34e146f5f 100644
--- a/configure.bat
+++ b/configure.bat
@@ -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