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
This commit is contained in:
bryner%brianryner.com
2004-11-15 08:37:53 +00:00
parent 05b0dbe26a
commit c9e1345a89

View File

@@ -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