diff options
author | bryner%brianryner.com <devnull@localhost> | 2004-09-14 20:59:41 +0000 |
---|---|---|
committer | bryner%brianryner.com <devnull@localhost> | 2004-09-14 20:59:41 +0000 |
commit | b01a5415a458b47ef3ceb174210d045e876d8ef3 (patch) | |
tree | daf8fa2b592bac7e5cca0a9d668a1dbe2277ac22 | |
parent | d9a86b69911aff0ba000a59070aa525d2073b1c9 (diff) | |
download | nspr-hg-b01a5415a458b47ef3ceb174210d045e876d8ef3.tar.gz |
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.
-rw-r--r-- | configure.in | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/configure.in b/configure.in index cee1adcb..10cdb2a7 100644 --- a/configure.in +++ b/configure.in @@ -1272,11 +1272,11 @@ case "$target" in 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 @@ -1336,7 +1336,7 @@ case "$target" in 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 |