Bug 1506016 - If we're building with MOZ_COPY_PDBS, build the pdb next to the executable r=firefox-build-system-reviewers,mshal

This will allow us to copy the pdbs for test files into the resulting
test file archive, but doesn't do it automatically.

Bug 1505936 is for copying some of them.

Differential Revision: https://phabricator.services.mozilla.com/D29761

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Ritter 2019-05-09 19:52:26 +00:00
parent 80fbae9239
commit 4e6bb3e03d

View file

@ -121,8 +121,30 @@ endif # FORCE_SHARED_LIB
ifeq ($(OS_ARCH),WINNT)
#
# This next line captures both the default (non-MOZ_COPY_PDBS)
# case as well as the MOZ_COPY_PDBS-for-mingwclang case.
#
# For the default case, placing the pdb in the build
# directory is needed.
#
# For the MOZ_COPY_PDBS, non-mingwclang case - we need to
# build the pdb next to the executable (handled in the if
# statement immediately below.)
#
# For the MOZ_COPY_PDBS, mingwclang case - we also need to
# build the pdb next to the executable, but this macro doesn't
# work for jsapi-tests which is a little special, so we specify
# the output directory below with MOZ_PROGRAM_LDFLAGS.
#
LINK_PDBFILE ?= $(basename $(@F)).pdb
ifdef MOZ_COPY_PDBS
ifneq ($(CC_TYPE),clang)
LINK_PDBFILE = $(basename $@).pdb
endif
endif
ifndef GNU_CC
ifdef SIMPLE_PROGRAMS