Mercurial > vim
comparison src/Make_mvc.mak @ 27370:584f91cc2508 v8.2.4213
patch 8.2.4213: too much code for supporting old MSVC versions
Commit: https://github.com/vim/vim/commit/76687d27173e64d739ea371751697c03ad0821ef
Author: K.Takata <kentkt@csc.jp>
Date: Tue Jan 25 10:31:37 2022 +0000
patch 8.2.4213: too much code for supporting old MSVC versions
Problem: Too much code for supporting old MSVC versions.
Solution: Remove MSVC 2003 support. (Ken Takata, closes https://github.com/vim/vim/issues/9623)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Jan 2022 11:45:06 +0100 |
parents | d5570658f18d |
children | 0b1acd38c7de |
comparison
equal
deleted
inserted
replaced
27369:914c181ea864 | 27370:584f91cc2508 |
---|---|
301 MSVCRT_NAME = msvcrt | 301 MSVCRT_NAME = msvcrt |
302 !elseif $(MSVCRT_VER) <= 130 | 302 !elseif $(MSVCRT_VER) <= 130 |
303 MSVCRT_NAME = msvcr$(MSVCRT_VER) | 303 MSVCRT_NAME = msvcr$(MSVCRT_VER) |
304 !else | 304 !else |
305 MSVCRT_NAME = vcruntime$(MSVCRT_VER) | 305 MSVCRT_NAME = vcruntime$(MSVCRT_VER) |
306 !endif | |
307 | |
308 !if $(MSVC_MAJOR) == 6 | |
309 CPU = ix86 | |
310 !endif | 306 !endif |
311 | 307 |
312 ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET) | 308 ### Set the default $(WINVER) to make it work with VC++7.0 (VS.NET) |
313 !ifndef WINVER | 309 !ifndef WINVER |
314 WINVER = 0x0501 | 310 WINVER = 0x0501 |
705 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG | 701 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG |
706 ! ifdef USE_MSVCRT | 702 ! ifdef USE_MSVCRT |
707 CFLAGS = $(CFLAGS) /MD | 703 CFLAGS = $(CFLAGS) /MD |
708 LIBC = msvcrt.lib | 704 LIBC = msvcrt.lib |
709 ! else | 705 ! else |
706 CFLAGS = $(CFLAGS) /Zl /MT | |
710 LIBC = libcmt.lib | 707 LIBC = libcmt.lib |
711 CFLAGS = $(CFLAGS) /Zl /MT | |
712 ! endif | 708 ! endif |
713 | 709 |
714 !else # DEBUG | 710 !else # DEBUG |
715 | 711 |
716 VIM = vimd | 712 VIM = vimd |
717 ! if ("$(CPU)" == "i386") || ("$(CPU)" == "ix86") | 713 ! if ("$(CPU)" == "i386") || ("$(CPU)" == "ix86") |
718 DEBUGINFO = /ZI | 714 DEBUGINFO = /ZI |
719 ! endif | 715 ! endif |
720 CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Od | 716 CFLAGS = $(CFLAGS) -D_DEBUG -DDEBUG /Od |
721 RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG | 717 RCFLAGS = $(rcflags) $(rcvars) -D_DEBUG -DDEBUG |
722 # The /fixed:no is needed for Quantify. Assume not 4.? as unsupported in VC4.0. | 718 # The /fixed:no is needed for Quantify. |
723 ! if $(MSVC_MAJOR) == 4 | |
724 LIBC = | |
725 ! else | |
726 LIBC = /fixed:no | 719 LIBC = /fixed:no |
727 ! endif | |
728 ! ifdef USE_MSVCRT | 720 ! ifdef USE_MSVCRT |
729 CFLAGS = $(CFLAGS) /MDd | 721 CFLAGS = $(CFLAGS) /MDd |
730 LIBC = $(LIBC) msvcrtd.lib | 722 LIBC = $(LIBC) msvcrtd.lib |
731 ! else | 723 ! else |
724 CFLAGS = $(CFLAGS) /Zl /MTd | |
732 LIBC = $(LIBC) libcmtd.lib | 725 LIBC = $(LIBC) libcmtd.lib |
733 CFLAGS = $(CFLAGS) /Zl /MTd | |
734 ! endif | 726 ! endif |
735 | 727 |
736 !endif # DEBUG | 728 !endif # DEBUG |
737 | 729 |
738 !if "$(CL)" == "/D_USING_V110_SDK71_" | 730 !if "$(CL)" == "/D_USING_V110_SDK71_" |
797 $(OUTDIR)\gui_xim.obj \ | 789 $(OUTDIR)\gui_xim.obj \ |
798 $(OUTDIR)\hardcopy.obj \ | 790 $(OUTDIR)\hardcopy.obj \ |
799 $(OUTDIR)\hashtab.obj \ | 791 $(OUTDIR)\hashtab.obj \ |
800 $(OUTDIR)\help.obj \ | 792 $(OUTDIR)\help.obj \ |
801 $(OUTDIR)\highlight.obj \ | 793 $(OUTDIR)\highlight.obj \ |
802 $(OBJDIR)\if_cscope.obj \ | 794 $(OUTDIR)\if_cscope.obj \ |
803 $(OUTDIR)\indent.obj \ | 795 $(OUTDIR)\indent.obj \ |
804 $(OUTDIR)\insexpand.obj \ | 796 $(OUTDIR)\insexpand.obj \ |
805 $(OUTDIR)\json.obj \ | 797 $(OUTDIR)\json.obj \ |
806 $(OUTDIR)\list.obj \ | 798 $(OUTDIR)\list.obj \ |
807 $(OUTDIR)\locale.obj \ | 799 $(OUTDIR)\locale.obj \ |