profile and coverage builds need different optimization flags (mostly for talkback)

r=dprice
This commit is contained in:
leaf%mozilla.org 2001-05-17 02:28:31 +00:00
Родитель 0bb0a60b6b
Коммит f944f16b34
1 изменённых файлов: 13 добавлений и 9 удалений

Просмотреть файл

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