diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-17 20:24:30 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-07-17 20:24:30 +0200 |
commit | f9048ed23d68c3a36060acd50c73c80d759c5a3f (patch) | |
tree | 78d12af6e99d9588e5e7770146e77ac5ba141225 /etc/environments/default-msvc-14.bat | |
parent | 5cac5e17b1224e3f048058b26383f2cc15cf6282 (diff) |
Require target in environment scripts
Diffstat (limited to 'etc/environments/default-msvc-14.bat')
-rw-r--r-- | etc/environments/default-msvc-14.bat | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/etc/environments/default-msvc-14.bat b/etc/environments/default-msvc-14.bat index 2af8136..fe8ebb4 100644 --- a/etc/environments/default-msvc-14.bat +++ b/etc/environments/default-msvc-14.bat @@ -17,10 +17,7 @@ setlocal EnableExtensions EnableDelayedExpansion set "MSVC=C:\Program Files (x86)\Microsoft Visual Studio 14.0" set "VCVARS=%MSVC%\VC\vcvarsall.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.0_" ( set "VCARCH=amd64" @@ -28,12 +25,8 @@ if "_%1_" == "_x86_64-microsoft-win32-msvc14.0_" ( if "_%1_" == "_i386-microsoft-win32-msvc14.0_" ( set "VCARCH=amd64_x86" ) else ( - if _%1_ == _""_ ( - set "VCARCH=amd64" - ) else ( - echo error: unknown target %1 - goto error - ) + echo error: unknown target %1 + goto error ) ) |