Add support for generating PDB-format debug symbols with MSVC, by setting MOZ_DEBUG_SYMBOLS=1 in the environment. This is to be used in place of MOZ_PROFILE. Bug 244231, r=wtc, dmose, a=asa. AVIARY_1_0_20040515_BRANCH FIREFOX_1_0_RC1 FIREFOX_1_0_RC2_RELEASE FIREFOX_1_0_RELEASE THUNDERBIRD_0_9_RELEASE THUNDERBIRD_1_0_RC_RELEASE
authorbryner%brianryner.com
Tue, 14 Sep 2004 21:10:26 +0000
branchAVIARY_1_0_20040515_BRANCH
changeset 3177 e518471b7da4dc97fb8a777efbca3d66f837a84b
parent 3176 73d1e4eeef456d4c96037acc7160e8f8f94da9e1
child 3226 98b30e25cba57b9fe70a7f5ef924c3e8c5652dd4
push idunknown
push userunknown
push dateunknown
reviewerswtc, dmose, asa
bugs244231
Add support for generating PDB-format debug symbols with MSVC, by setting MOZ_DEBUG_SYMBOLS=1 in the environment. This is to be used in place of MOZ_PROFILE. Bug 244231, r=wtc, dmose, a=asa.
configure
--- a/configure
+++ b/configure
@@ -3892,21 +3892,21 @@ EOF
 
         if test -n "$MOZ_OPTIMIZE"; then
             CFLAGS="$CFLAGS -MD"
             _OPTIMIZE_FLAGS=-O2
             DLLFLAGS='-OUT:"$@"'
 
             if test -n "$MOZ_PROFILE"; then
                 _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Z7"
-                DLLFLAGS="$DLLFLAGS -DEBUG -DEBUGTYPE:CV -OPT:REF"
-                LDFLAGS="$LDFLAGS -DEBUG -DEBUGTYPE:CV -OPT:REF"
             fi
-            if test -n "$MOZ_PDB"; then
-                _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Z7"
+            if test -n "$MOZ_DEBUG_SYMBOLS"; then
+                _OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Zi"
+            fi
+            if test -n "$MOZ_PROFILE" -o -n "$MOZ_DEBUG_SYMBOLS"; then
                 DLLFLAGS="$DLLFLAGS -DEBUG -OPT:REF"
                 LDFLAGS="$LDFLAGS -DEBUG -OPT:REF"
             fi
         else
             if test -n "$USE_DEBUG_RTL"; then
                 CFLAGS="$CFLAGS -MDd"
             else
                 CFLAGS="$CFLAGS -MD"
@@ -3968,17 +3968,17 @@ EOF
         CPU_ARCH_TAG=$CPU_ARCH
     fi
 
     if test -n "$USE_DEBUG_RTL"; then
         OBJDIR_SUFFIX=OBJD
     fi
 
     OS_DLLFLAGS='-nologo -DLL -SUBSYSTEM:WINDOWS'
-    if test -z "$MOZ_PDB"; then
+    if test -z "$MOZ_DEBUG_SYMBOLS"; then
         OS_DLLFLAGS="$OS_DLLFLAGS -PDB:NONE"
     fi
 
     case "$OS_TARGET" in
     WINNT)
 	    MDCPUCFG_H=_winnt.cfg
 	    ;;
     WIN95)