Hi,

I found a small mistake in src/msvc2015.bat.

If the batch file is executed with the "x86_amd64" option, it enables the
x86 cross compiler targeting x64. This should work both on Express edition
and Community edition.

VC2015 Community edition also has x64 native compiler, however, executing
the batch file with the "x64" option didn't work as expected. This is because
the enviromnent variable "Platform" was set to "X64" instead of "x64".

Attached patch fixes the batch file and update the document.

Regards,
Ken Takata

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
# HG changeset patch
# Parent  29f16c55c42efada128f0dff20be2f16b5812d6e

diff --git a/src/INSTALLpc.txt b/src/INSTALLpc.txt
--- a/src/INSTALLpc.txt
+++ b/src/INSTALLpc.txt
@@ -164,6 +164,11 @@ options:
   msvc2015
 For x64 builds run this with the "x86_amd64" option:
   msvc2015 x86_amd64
+This enables x86_x64 cross compiler. This works on any editions including
+Express edition.
+If you use Community (or Professional) edition, you can enable the x64 native
+compiler by using the "x64" option:
+  msvc2015 x64
 
 The following Visual C++ team blog can serve as a reference page:
     http://blogs.msdn.com/b/vcblog/archive/2012/10/08/windows-xp-targeting-with-c-in-visual-studio-2012.aspx
diff --git a/src/msvc2015.bat b/src/msvc2015.bat
--- a/src/msvc2015.bat
+++ b/src/msvc2015.bat
@@ -7,6 +7,10 @@ rem   For x86 builds run this without op
 rem     msvc2015
 rem   For x64 builds run this with "x86_amd64" option:
 rem     msvc2015 x86_amd64
+rem   This works on any editions including Express edition.
+rem   If you use Community (or Professional) edition, you can also use "x64"
+rem   option:
+rem     msvc2015 x64
 @echo on
 
 call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" %*
@@ -23,7 +27,7 @@ if not exist "%WinSdk71%" (
 )
 
 set INCLUDE=%WinSdk71%\Include;%INCLUDE%
-if "%Platform%"=="x64" (
+if /i "%Platform%"=="x64" (
 	set "LIB=%WinSdk71%\Lib\x64;%LIB%"
 	set SUBSYSTEM_VER=5.02
 ) else (

Raspunde prin e-mail lui