bug 1322703 - use -Fd to specify unique PDB filename per-object-file for MSVC. r?glandium draft
authorTed Mielczarek <ted@mielczarek.org>
Wed, 14 Dec 2016 14:40:59 -0500
changeset 466713 9074f717fa0528b65ecf42914b958466ace2c4bb
parent 456998 a9a67c9d3659fcd3dc4f5e5cdf1f889fd918e360
child 466714 f7ceac89121bd39c86d575ad552644dccbcbab0b
push id42972
push userbmo:ted@mielczarek.org
push dateThu, 26 Jan 2017 11:20:45 +0000
reviewersglandium
bugs1322703
milestone53.0a1
bug 1322703 - use -Fd to specify unique PDB filename per-object-file for MSVC. r?glandium MozReview-Commit-ID: CxpLruksaHg
config/rules.mk
--- a/config/rules.mk
+++ b/config/rules.mk
@@ -148,32 +148,17 @@ EMBED_MANIFEST_AT=2
 
 endif # MKSHLIB
 endif # FORCE_SHARED_LIB
 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)
 
 LINK_PDBFILE ?= $(basename $(@F)).pdb
 ifdef MOZ_DEBUG
 CODFILE=$(basename $(@F)).cod
 endif