On Tuesday, September 18, 2012 12:27:22 PM UTC-4, Bram Moolenaar wrote:
> Patch 7.3.665
>
> Problem: MSVC 11 is not supported.
>
> Solution: Recognize MSVC 11. (Raymond Ko)
>
> Files: src/Make_mvc.mak
>
>
>
>
>
> *** ../vim-7.3.664/src/Make_mvc.mak 2012-09-05 17:57:34.000000000 +0200
>
> --- src/Make_mvc.mak 2012-09-18 18:24:48.000000000 +0200
>
> ***************
>
> *** 395,400 ****
>
> --- 395,403 ----
>
> !if "$(_NMAKE_VER)" == "10.00.30319.01"
>
> MSVCVER = 10.0
>
> !endif
>
> + !if "$(_NMAKE_VER)" == "11.00.50727.1"
>
> + MSVCVER = 11.0
>
> + !endif
>
> !endif
>
>
>
> # Abort bulding VIM if version of VC is unrecognised.
>
> ***************
>
> *** 409,415 ****
>
> !endif
>
>
>
> # Convert processor ID to MVC-compatible number
>
> ! !if ("$(MSVCVER)" != "8.0") && ("$(MSVCVER)" != "9.0") && ("$(MSVCVER)" !=
> "10.0")
>
> !if "$(CPUNR)" == "i386"
>
> CPUARG = /G3
>
> !elseif "$(CPUNR)" == "i486"
>
> --- 412,418 ----
>
> !endif
>
>
>
> # Convert processor ID to MVC-compatible number
>
> ! !if ("$(MSVCVER)" != "8.0") && ("$(MSVCVER)" != "9.0") && ("$(MSVCVER)" !=
> "10.0") && ("$(MSVCVER)" != "11.0")
>
> !if "$(CPUNR)" == "i386"
>
> CPUARG = /G3
>
> !elseif "$(CPUNR)" == "i486"
>
> ***************
>
> *** 443,449 ****
>
> OPTFLAG = /Ox
>
> !endif
>
>
>
> ! !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") || ("$(MSVCVER)" ==
> "10.0")
>
> # Use link time code generation if not worried about size
>
> !if "$(OPTIMIZE)" != "SPACE"
>
> OPTFLAG = $(OPTFLAG) /GL
>
> --- 446,452 ----
>
> OPTFLAG = /Ox
>
> !endif
>
>
>
> ! !if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") || ("$(MSVCVER)" ==
> "10.0") || ("$(MSVCVER)" == "11.0")
>
> # Use link time code generation if not worried about size
>
> !if "$(OPTIMIZE)" != "SPACE"
>
> OPTFLAG = $(OPTFLAG) /GL
>
> *** ../vim-7.3.664/src/version.c 2012-09-18 18:03:33.000000000 +0200
>
> --- src/version.c 2012-09-18 18:26:16.000000000 +0200
>
> ***************
>
> *** 721,722 ****
>
> --- 721,724 ----
>
> { /* Add new patch number below this line */
>
> + /**/
>
> + 665,
>
> /**/
>
>
>
> --
>
> There are 10 kinds of people: Those who understand binary and those who don't.
>
>
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
>
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
>
> \\\ an exciting new programming language -- http://www.Zimbu.org ///
>
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
I think you also forgot a check for version 11 at line 918.
Current diff againt my mini-branch.
diff -r 35939e1e25ff src/Make_mvc.mak
--- a/src/Make_mvc.mak Tue Sep 18 18:27:12 2012 +0200
+++ b/src/Make_mvc.mak Tue Sep 18 13:01:28 2012 -0400
@@ -227,7 +227,11 @@
# Get all sorts of useful, standard macros from the Platform SDK.
+!ifdef SDK_INCLUDE_DIR
+!include $(SDK_INCLUDE_DIR)\Win32.mak
+!else
!include <Win32.mak>
+!endif
# Flag to turn on Win64 compatibility warnings for VC7.x and VC8.
WP64CHECK = /Wp64
@@ -911,7 +915,7 @@
# Report link time code generation progress if used.
!ifdef NODEBUG
-!if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") || ("$(MSVCVER)" ==
"10.0")
+!if ("$(MSVCVER)" == "8.0") || ("$(MSVCVER)" == "9.0") || ("$(MSVCVER)" ==
"10.0") || ("$(MSVCVER)" == "11.0")
!if "$(OPTIMIZE)" != "SPACE"
LINKARGS1 = $(LINKARGS1) /LTCG:STATUS
!endif
--
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