From c9e1345a8961908f0eecc37b8e31cc29d0e0aefb Mon Sep 17 00:00:00 2001 From: "bryner%brianryner.com" Date: Mon, 15 Nov 2004 08:37:53 +0000 Subject: [PATCH] When building with --enable-quantify, use /OPT:NOICF to prevent identical functions from being merged. Bug 267576, r=dbaron. git-svn-id: svn://10.0.0.236/trunk@165365 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/config/config.mk | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mozilla/config/config.mk b/mozilla/config/config.mk index 7591841f6da..065631da166 100644 --- a/mozilla/config/config.mk +++ b/mozilla/config/config.mk @@ -317,10 +317,15 @@ OS_LDFLAGS += /PDB:NONE endif endif +ifdef MOZ_QUANTIFY # /FIXED:NO is needed for Quantify to work, but it increases the size # of executables, so only use it if building for Quantify. -ifdef MOZ_QUANTIFY WIN32_EXE_LDFLAGS=/FIXED:NO + +# We need /OPT:NOICF to prevent identical methods from being merged together. +# Otherwise, Quantify doesn't know which method was actually called when it's +# showing you the profile. +OS_LDFLAGS += /OPT:NOICF endif # if MOZ_COVERAGE is set, we handle pdb files slightly differently