aboutsummaryrefslogtreecommitdiff
path: root/etc/environments/default-msvc-15.bat
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-07-17 20:24:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-07-17 20:24:30 +0200
commitf9048ed23d68c3a36060acd50c73c80d759c5a3f (patch)
tree78d12af6e99d9588e5e7770146e77ac5ba141225 /etc/environments/default-msvc-15.bat
parent5cac5e17b1224e3f048058b26383f2cc15cf6282 (diff)
Require target in environment scripts
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
)
)