From: Nick Ing-Simmons Date: Thu, 7 Dec 2000 00:28:14 +0000 (+0000) Subject: Various attempts at MSVC debug - not sure what has X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=be696b0a6b61315b71a751e7291be8d8a9066650;p=p5sagit%2Fp5-mst-13.2.git Various attempts at MSVC debug - not sure what has changed but works now. Seems atexit() _may_ work for DLLs built with MSVC so don't call cleanup that way. p4raw-id: //depot/perlio@8021 --- diff --git a/perlio.c b/perlio.c index 4ffcc2e..a0856af 100644 --- a/perlio.c +++ b/perlio.c @@ -2957,7 +2957,9 @@ PerlIO_init(void) { if (!_perlio) { +#ifndef WIN32 atexit(&PerlIO_cleanup); +#endif } } diff --git a/win32/makefile.mk b/win32/makefile.mk index c4a1398..974deb3 100644 --- a/win32/makefile.mk +++ b/win32/makefile.mk @@ -437,10 +437,14 @@ PERLDLL_RES = .IF "$(CFG)" == "Debug" .IF "$(CCTYPE)" == "MSVC20" OPTIMIZE = -Od -MD -Z7 -DDEBUGGING +LINK_DBG = -debug -pdb:none .ELSE -OPTIMIZE = -Od -MD -Zi -DDEBUGGING +# -Zi requires .pdb file(s) +#OPTIMIZE = -Od -MD -Zi -DDEBUGGING +#LINK_DBG = -debug +OPTIMIZE = -O1 -MD -Z7 -DDEBUGGING +LINK_DBG = -debug -debugtype:both -pdb:none .ENDIF -LINK_DBG = -debug -pdb:none .ELSE .IF "$(CFG)" == "Optimize" # -O1 yields smaller code, which turns out to be faster than -O2