Bug 232600. Define MOZ_DEBUG_SYMBOLS in environment to create .pdb files

and install them in $DIST.   r=rrelyea,wtchang
This commit is contained in:
nelson%bolyard.com 2007-01-06 05:47:10 +00:00
parent 2469ae0214
commit 64434bbb04
2 changed files with 15 additions and 1 deletions

View File

@ -149,8 +149,12 @@ else # !NS_USE_GCC
USERNAME := $(subst -,_,$(USERNAME))
DEFINES += -DDEBUG -D_DEBUG -UNDEBUG -DDEBUG_$(USERNAME)
DLLFLAGS += -DEBUG -OUT:"$@"
LDFLAGS += -DEBUG
ifndef MOZ_DEBUG_SYMBOLS
LDFLAGS += -PDB:NONE
endif
# Purify requires /FIXED:NO when linking EXEs.
LDFLAGS += -DEBUG -PDB:NONE /FIXED:NO
LDFLAGS += /FIXED:NO
endif
endif # NS_USE_GCC

View File

@ -114,12 +114,22 @@ ifdef LIBRARY
endif
ifdef SHARED_LIBRARY
$(INSTALL) -m 775 $(SHARED_LIBRARY) $(SOURCE_LIB_DIR)
ifdef MOZ_DEBUG_SYMBOLS
ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET)))
$(INSTALL) -m 644 $(SHARED_LIBRARY:$(DLL_SUFFIX)=pdb) $(SOURCE_LIB_DIR)
endif
endif
endif
ifdef IMPORT_LIBRARY
$(INSTALL) -m 775 $(IMPORT_LIBRARY) $(SOURCE_LIB_DIR)
endif
ifdef PROGRAM
$(INSTALL) -m 775 $(PROGRAM) $(SOURCE_BIN_DIR)
ifdef MOZ_DEBUG_SYMBOLS
ifeq (,$(filter-out _WIN%,$(NS_USE_GCC)_$(OS_TARGET)))
$(INSTALL) -m 644 $(PROGRAM:$(PROG_SUFFIX)=.pdb) $(SOURCE_BIN_DIR)
endif
endif
endif
ifdef PROGRAMS
$(INSTALL) -m 775 $(PROGRAMS) $(SOURCE_BIN_DIR)