Work around strange MSVC bug with the new html5 parser that's causing Windows CE build timeouts (and longer build times with msvc in general) by disabling optimization for nsHtml5NamedCharacters::initializeStatics, r=timeless on IRC

This commit is contained in:
Gavin Sharp 2009-06-29 04:54:40 -04:00
Родитель 91fcbe6be9
Коммит 55d31aa3de
1 изменённых файлов: 10 добавлений и 1 удалений

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

@ -12864,6 +12864,12 @@ static PRUnichar const NAME_2136[] = {
static PRUnichar const VALUE_2136[] = {
0x200c
};
// XXX for some reason, it takes forever for msvc to optimize this function
#ifdef _MSC_VER
#pragma optimize("", off)
#endif
void
nsHtml5NamedCharacters::initializeStatics()
{
@ -17150,10 +17156,13 @@ nsHtml5NamedCharacters::initializeStatics()
}
}
#ifdef _MSC_VER
#pragma optimize("", on)
#endif
void
nsHtml5NamedCharacters::releaseStatics()
{
NAMES.release();
delete[] VALUES;
}