Bug 1245422 - Remove -UDEBUG -DNDEBUG flags on Windows opt builds. r=mshal

-DNDEBUG is already set through MOZ_DEBUG_DEFINES, and -UDEBUG is not
doing anything useful, since nothing is setting DEBUG on the command
line, nor does the compiler by default.
This commit is contained in:
Mike Hommey 2016-02-03 17:48:49 +09:00
Родитель ba138b2936
Коммит dd8a301bbf
1 изменённых файлов: 1 добавлений и 3 удалений

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

@ -195,8 +195,6 @@ ifndef MOZ_DEBUG
# Used for generating an optimized build with debugging symbols.
# Used in the Windows nightlies to generate symbols for crash reporting.
ifdef MOZ_DEBUG_SYMBOLS
OS_CXXFLAGS += -UDEBUG -DNDEBUG
OS_CFLAGS += -UDEBUG -DNDEBUG
ifdef HAVE_64BIT_BUILD
OS_LDFLAGS += -DEBUG -OPT:REF,ICF
else
@ -209,7 +207,7 @@ endif
# No opt to give sane callstacks.
#
ifdef MOZ_DMD
MOZ_OPTIMIZE_FLAGS=-Zi -Od -UDEBUG -DNDEBUG
MOZ_OPTIMIZE_FLAGS=-Zi -Od
ifdef HAVE_64BIT_BUILD
OS_LDFLAGS = -DEBUG -OPT:REF,ICF
else