зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
91fcbe6be9
Коммит
55d31aa3de
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче