Mercurial > vim
comparison src/Make_mvc.mak @ 19519:3e4c401a652f v8.2.0317
patch 8.2.0317: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build
Commit: https://github.com/vim/vim/commit/703ea9eaefd3628d75c8c2fa19f934f6832638f1
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Feb 25 22:04:55 2020 +0100
patch 8.2.0317: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build
Problem: MSVC: _CRT_SECURE_NO_DEPRECATE not defined on DEBUG build.
Solution: Move where CFLAGS is updated. (Ken Takata, closes https://github.com/vim/vim/issues/5692)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Tue, 25 Feb 2020 22:15:04 +0100 |
parents | 9800e126eaa2 |
children | a8b2821181c2 |
comparison
equal
deleted
inserted
replaced
19518:5825b425bd68 | 19519:3e4c401a652f |
---|---|
661 ! if $(MSVC_MAJOR) >= 8 | 661 ! if $(MSVC_MAJOR) >= 8 |
662 # Use link time code generation if not worried about size | 662 # Use link time code generation if not worried about size |
663 ! if "$(OPTIMIZE)" != "SPACE" | 663 ! if "$(OPTIMIZE)" != "SPACE" |
664 OPTFLAG = $(OPTFLAG) /GL | 664 OPTFLAG = $(OPTFLAG) /GL |
665 ! endif | 665 ! endif |
666 # Visual Studio 2005 has 'deprecated' many of the standard CRT functions | |
667 CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE | |
668 CFLAGS = $(CFLAGS) $(CFLAGS_DEPR) | |
669 ! endif | 666 ! endif |
670 | 667 |
671 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) | 668 # (/Wp64 is deprecated in VC9 and generates an obnoxious warning.) |
672 ! if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8) | 669 ! if ($(MSVC_MAJOR) == 7) || ($(MSVC_MAJOR) == 8) |
673 CFLAGS = $(CFLAGS) $(WP64CHECK) | 670 CFLAGS = $(CFLAGS) $(WP64CHECK) |
704 ! else | 701 ! else |
705 LIBC = $(LIBC) libcmtd.lib | 702 LIBC = $(LIBC) libcmtd.lib |
706 CFLAGS = $(CFLAGS) /Zl /MTd | 703 CFLAGS = $(CFLAGS) /Zl /MTd |
707 ! endif | 704 ! endif |
708 !endif # DEBUG | 705 !endif # DEBUG |
706 | |
707 !if $(MSVC_MAJOR) >= 8 | |
708 # Visual Studio 2005 has 'deprecated' many of the standard CRT functions | |
709 CFLAGS_DEPR = /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE | |
710 CFLAGS = $(CFLAGS) $(CFLAGS_DEPR) | |
711 !endif | |
709 | 712 |
710 !include Make_all.mak | 713 !include Make_all.mak |
711 !include testdir\Make_all.mak | 714 !include testdir\Make_all.mak |
712 | 715 |
713 INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \ | 716 INCL = vim.h alloc.h ascii.h ex_cmds.h feature.h globals.h \ |