Bug 1270832 - turn on debug mode for libstdc++ headers; r=glandium

This commit is contained in:
Nathan Froyd 2016-05-11 17:01:39 -04:00
Родитель 3a4d7b486c
Коммит ba6687453e
1 изменённых файлов: 5 добавлений и 7 удалений

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

@ -43,14 +43,12 @@
#endif
#if defined(DEBUG) && !defined(_GLIBCXX_DEBUG)
// Don't enable debug mode with the clang plugin; clang doesn't recognize
// the debug/ versions of the stdlib headers as being system headers, leading
// to complaints about code that's out of our control.
#if defined(DEBUG) && !defined(_GLIBCXX_DEBUG) && !defined(MOZ_CLANG_PLUGIN)
// Enable checked iterators and other goodies
//
// FIXME/bug 551254: gcc's debug STL implementation requires -frtti.
// Figure out how to resolve this with -fno-rtti. Maybe build with
// -frtti in DEBUG builds?
//
// # define _GLIBCXX_DEBUG 1
# define _GLIBCXX_DEBUG 1
#endif
#pragma GCC visibility push(default)