Various attempts at MSVC debug - not sure what has
Nick Ing-Simmons [Thu, 7 Dec 2000 00:28:14 +0000 (00:28 +0000)]
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

perlio.c
win32/makefile.mk

index 4ffcc2e..a0856af 100644 (file)
--- a/perlio.c
+++ b/perlio.c
@@ -2957,7 +2957,9 @@ PerlIO_init(void)
 {
  if (!_perlio)
   {
+#ifndef WIN32
    atexit(&PerlIO_cleanup);
+#endif
   }
 }
 
index c4a1398..974deb3 100644 (file)
@@ -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