]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.0857: selecting MSVC 2017 does not set $PLATFORM v9.0.0857
authorK.Takata <kentkt@csc.jp>
Thu, 10 Nov 2022 23:17:19 +0000 (23:17 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 10 Nov 2022 23:17:19 +0000 (23:17 +0000)
Problem:    Selecting MSVC 2017 does not set $PLATFORM.
Solution:   Use $VSCMD_ARG_TGT_ARCH. (Ken Takata, closes #11485)

src/Make_mvc.mak
src/version.c

index 028277a10823048302fad4ad41ebccd4f7180d92..639ae2f8932d51232850a8a3fa5c7d9ef9b74418 100644 (file)
@@ -222,8 +222,12 @@ CPU = i386
 !  endif
 ! else  # !CPU
 CPU = i386
-!  if !defined(PLATFORM) && defined(TARGET_CPU)
+!  ifndef PLATFORM
+!   ifdef TARGET_CPU
 PLATFORM = $(TARGET_CPU)
+!   elseif defined(VSCMD_ARG_TGT_ARCH)
+PLATFORM = $(VSCMD_ARG_TGT_ARCH)
+!   endif
 !  endif
 !  ifdef PLATFORM
 !   if ("$(PLATFORM)" == "x64") || ("$(PLATFORM)" == "X64")
index 50f6709b26df57388b66d0cd883414bccd2e81c0..19f0692dba1b4e5497ce04c6c03586653d6fd7ba 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    857,
 /**/
     856,
 /**/