view src/msvc2015.bat @ 14792:8eb8200a55b2 v8.1.0408

patch 8.1.0408: MSVC: cannot use the "x64" native compiler option commit https://github.com/vim/vim/commit/a87f8fd3fe8697d2b43da5c89e3079aaa0f1c9c7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Sep 18 22:58:41 2018 +0200 patch 8.1.0408: MSVC: cannot use the "x64" native compiler option Problem: MSVC: cannot use the "x64" native compiler option. Solution: Ignore case for %Platform%. Improve documentation. (Ken Takata)
author Christian Brabandt <cb@256bit.org>
date Tue, 18 Sep 2018 23:00:07 +0200
parents 590424e87b65
children fe97616d43d2
line wrap: on
line source

@echo off
rem To be used on MS-Windows for Visual C++ 2015 (either Express or Community)
rem See INSTALLpc.txt for information.
rem
rem Usage:
rem   For x86 builds run this without options:
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" %*

rem Use Windows SDK 7.1A for targeting Windows XP.
if "%ProgramFiles(x86)%"=="" (
	set "WinSdk71=%ProgramFiles%\Microsoft SDKs\Windows\v7.1A"
) else (
	set "WinSdk71=%ProgramFiles(x86)%\Microsoft SDKs\Windows\v7.1A"
)
if not exist "%WinSdk71%" (
	echo Windows SDK 7.1A is not found.  Targeting Windows Vista and later.
	goto :eof
)

set INCLUDE=%WinSdk71%\Include;%INCLUDE%
if /i "%Platform%"=="x64" (
	set "LIB=%WinSdk71%\Lib\x64;%LIB%"
	set SUBSYSTEM_VER=5.02
) else (
	set "LIB=%WinSdk71%\Lib;%LIB%"
	set SUBSYSTEM_VER=5.01
)
set CL=/D_USING_V110_SDK71_