comparison src/Make_mvc.mak @ 16017:6230ff29c39a v8.1.1014

patch 8.1.1014: MS-Windows: /analyze only defined for non-debug version commit https://github.com/vim/vim/commit/38db5276cd8f45fdf3dea8997e8994676e71b105 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Mar 17 15:47:25 2019 +0100 patch 8.1.1014: MS-Windows: /analyze only defined for non-debug version Problem: MS-Windows: /analyze only defined for non-debug version. Solution: Move adding of /analyze up. (Taro Muraoka, closes https://github.com/vim/vim/issues/4114)
author Bram Moolenaar <Bram@vim.org>
date Sun, 17 Mar 2019 16:00:05 +0100
parents ce8f501c9ce2
children 8c160339de22
comparison
equal deleted inserted replaced
16016:a1f884a6e308 16017:6230ff29c39a
629 # VC10 or later has stdint.h. 629 # VC10 or later has stdint.h.
630 !if $(MSVC_MAJOR) >= 10 630 !if $(MSVC_MAJOR) >= 10
631 CFLAGS = $(CFLAGS) -DHAVE_STDINT_H 631 CFLAGS = $(CFLAGS) -DHAVE_STDINT_H
632 !endif 632 !endif
633 633
634 # Static code analysis generally available starting with VS2012 (VC11) or
635 # Windows SDK 7.1 (VC10)
636 !if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10)
637 CFLAGS=$(CFLAGS) /analyze
638 !endif
639
634 !ifdef NODEBUG 640 !ifdef NODEBUG
635 VIM = vim 641 VIM = vim
636 !if "$(OPTIMIZE)" == "SPACE" 642 !if "$(OPTIMIZE)" == "SPACE"
637 OPTFLAG = /O1 643 OPTFLAG = /O1
638 !elseif "$(OPTIMIZE)" == "SPEED" 644 !elseif "$(OPTIMIZE)" == "SPEED"
649 !endif 655 !endif
650 656
651 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) 657 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.)
652 !if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8) 658 !if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8)
653 CFLAGS=$(CFLAGS) $(WP64CHECK) 659 CFLAGS=$(CFLAGS) $(WP64CHECK)
654 !endif
655
656 # Static code analysis generally available starting with VS2012 (VC11) or
657 # Windows SDK 7.1 (VC10)
658 !if ("$(ANALYZE)" == "yes") && ($(MSVC_MAJOR) >= 10)
659 CFLAGS=$(CFLAGS) /analyze
660 !endif 660 !endif
661 661
662 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG) 662 CFLAGS = $(CFLAGS) $(OPTFLAG) -DNDEBUG $(CPUARG)
663 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG 663 RCFLAGS = $(rcflags) $(rcvars) -DNDEBUG
664 ! ifdef USE_MSVCRT 664 ! ifdef USE_MSVCRT