From 84a6cbf634093fdc79182f8972eb78b35863404c Mon Sep 17 00:00:00 2001 From: "leaf%mozilla.org" Date: Thu, 17 May 2001 02:28:31 +0000 Subject: [PATCH] profile and coverage builds need different optimization flags (mostly for talkback) r=dprice --- config/WIN32 | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/config/WIN32 b/config/WIN32 index 0a46f79a118a..779b1121d626 100644 --- a/config/WIN32 +++ b/config/WIN32 @@ -68,23 +68,27 @@ OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:$(PDBFILE) !else +# Initialize to non-profile, non-coverage optimization +OPTIMIZER=-O1 -UDEBUG -DNDEBUG +OS_LFLAGS=/OPT:nowin98 + # if MOZ_DEBUG is not set and MOZ_PROFILE is set, then we generate # an optimized build with debugging symbols. Useful for debugging # compiler optimization bugs, as well as running with Quantify. -!if defined(MOZ_COVERAGE) || defined (MOZ_PROFILE) -OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:$(PDBFILE) /OPT:REF /OPT:nowin98 +!if defined (MOZ_PROFILE) +OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:NONE /OPT:REF /OPT:nowin98 OPTIMIZER=-Zi -O1 -UDEBUG -DNDEBUG -!else - -# MOZ_PROFILE not set. -# optimize it, no symbols -# -OPTIMIZER=-O1 -UDEBUG -DNDEBUG -OS_LFLAGS=/OPT:nowin98 !endif # MOZ_PROFILE +# if MOZ_COVERAGE is set, we handle pdb files slightly differently +!if defined(MOZ_COVERAGE) +OS_LFLAGS=/DEBUG /DEBUGTYPE:CV /PDB:$(PDBFILE) /OPT:REF /OPT:nowin98 +OPTIMIZER=-Zi -O1 -UDEBUG -DNDEBUG +!endif +# MOZ_COVERAGE + !endif # MOZ_DEBUG