aboutsummaryrefslogtreecommitdiff
path: root/etc/environments/default-msvc-15.bat
diff options
context:
space:
mode:
Diffstat (limited to 'etc/environments/default-msvc-15.bat')
-rw-r--r--etc/environments/default-msvc-15.bat13
1 files changed, 3 insertions, 10 deletions
diff --git a/etc/environments/default-msvc-15.bat b/etc/environments/default-msvc-15.bat
index 6eecc71..6c900dd 100644
--- a/etc/environments/default-msvc-15.bat
+++ b/etc/environments/default-msvc-15.bat
@@ -19,10 +19,7 @@ set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"
set "VCVARS32=%MSVC%\VC\Auxiliary\Build\vcvarsamd64_x86.bat"
set "VCVARS64=%MSVC%\VC\Auxiliary\Build\vcvars64.bat"
-rem Based on target determine what we are building. If the target is
-rem not specified, then we build 64-bit by default.
-rem
-rem Note that an empty argument is passed as "" (literal quotes).
+rem Based on target determine what we are building.
rem
if "_%1_" == "_x86_64-microsoft-win32-msvc14.1_" (
set "VCVARS=%VCVARS64%"
@@ -30,12 +27,8 @@ if "_%1_" == "_x86_64-microsoft-win32-msvc14.1_" (
if "_%1_" == "_i386-microsoft-win32-msvc14.1_" (
set "VCVARS=%VCVARS32%"
) else (
- if _%1_ == _""_ (
- set "VCVARS=%VCVARS64%"
- ) else (
- echo error: unknown target %1
- goto error
- )
+ echo error: unknown target %1
+ goto error
)
)