Override compile flags instead of appending them for profile, coverage & trace-malloc builds. This should fix the talkback line number issue.

Bug #141834 r=leaf sr=jdunn
This commit is contained in:
seawood%netscape.com 2002-05-16 19:02:45 +00:00
Родитель ccef729e0a
Коммит e4ef1b46a1
1 изменённых файлов: 5 добавлений и 9 удалений

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

@ -286,18 +286,14 @@ else
# an optimized build with debugging symbols. Useful for debugging
# compiler optimization bugs, as well as running with Quantify.
ifdef MOZ_PROFILE
_WIN32_PROFILE_FLAGS=-Zi -O1 -UDEBUG -DNDEBUG
OS_CFLAGS += $(_WIN32_PROFILE_FLAGS)
OS_CXXFLAGS += $(_WIN32_PROFILE_FLAGS)
OS_LDFLAGS += /DEBUG /DEBUGTYPE:CV /OPT:REF /OPT:nowin98
MOZ_OPTIMIZE_FLAGS=-Zi -O1 -UDEBUG -DNDEBUG
OS_LDFLAGS = /DEBUG /DEBUGTYPE:CV /OPT:REF /OPT:nowin98
endif
# if MOZ_COVERAGE is set, we handle pdb files slightly differently
ifdef MOZ_COVERAGE
_WIN32_COVERAGE_FLAGS=-Zi -O1 -UDEBUG -DNDEBUG
OS_CFLAGS += $(_WIN32_COVERAGE_FLAGS)
OS_CXXFLAGS += $(_WIN32_COVERAGE_FLAGS)
OS_LDFLAGS += /DEBUG /DEBUGTYPE:CV /OPT:REF /OPT:nowin98
MOZ_OPTIMIZE_FLAGS=-Zi -O1 -UDEBUG -DNDEBUG
OS_LDFLAGS = /DEBUG /DEBUGTYPE:CV /OPT:REF /OPT:nowin98
endif
# MOZ_COVERAGE
@ -307,7 +303,7 @@ endif
#
ifdef NS_TRACE_MALLOC
MOZ_OPTIMIZE_FLAGS=-Zi -Od -UDEBUG -DNDEBUG
OS_LDFLAGS += /DEBUG /DEBUGTYPE:CV /PDB:NONE /OPT:REF /OPT:nowin98
OS_LDFLAGS = /DEBUG /DEBUGTYPE:CV /PDB:NONE /OPT:REF /OPT:nowin98
endif
# NS_TRACE_MALLOC