mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
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:
parent
2469ae0214
commit
64434bbb04
@ -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
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user