Backed out changeset 4aa866ebfeaa (bug 1322703)

This commit is contained in:
Sebastian Hengst 2017-03-01 18:45:56 +01:00
parent be6f12e547
commit 0c32b64e57
2 changed files with 16 additions and 1 deletions

View File

@ -22,4 +22,4 @@
# changes to stick? As of bug 928195, this shouldn't be necessary! Please
# don't change CLOBBER for WebIDL changes any more.
Touching clobber for Telemetry IPC refactor in bug 1339749.
Touching clobber for Bug 1322703 - Use -Fd to specify unique PDB filename per-compile for MSVC

View File

@ -153,7 +153,22 @@ endif # LIBRARY
ifeq ($(OS_ARCH),WINNT)
ifndef GNU_CC
#
# Unless we're building SIMPLE_PROGRAMS, all C++ files share a PDB file per
# directory. For parallel builds, this PDB file is shared and locked by
# MSPDBSRV.EXE, starting with MSVC8 SP1. If you're using MSVC 7.1 or MSVC8
# without SP1, don't do parallel builds.
#
# The final PDB for libraries and programs is created by the linker and uses
# a different name from the single PDB file created by the compiler. See
# bug 462740.
#
ifdef SIMPLE_PROGRAMS
COMPILE_PDB_FLAG ?= -Fd$(basename $(@F)).pdb
else
COMPILE_PDB_FLAG ?= -Fdgenerated.pdb
endif
COMPILE_CFLAGS += $(COMPILE_PDB_FLAG)
COMPILE_CXXFLAGS += $(COMPILE_PDB_FLAG)