Bug 1479842: Don't PGO gfxFontInfoLoader.cpp with clang-cl. r=froydnj

This commit is contained in:
David Major 2018-08-01 15:10:13 -04:00
Родитель 246ccc876f
Коммит f9500eac94
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -176,6 +176,8 @@ SOURCES += [
# we could consider removing soon (affects Ubuntus older than 10.04 LTS)
# which currently prevent it from joining UNIFIED_SOURCES.
'gfxDrawable.cpp',
# gfxFontInfoLoader.cpp needs to set no_pgo for clang-cl
'gfxFontInfoLoader.cpp',
# gfxFontUtils.cpp and gfxPlatform.cpp include mac system header conflicting with point/size
'gfxFontUtils.cpp',
'gfxPlatform.cpp',
@ -184,6 +186,10 @@ SOURCES += [
'PrintTargetThebes.cpp',
]
if CONFIG['CC_TYPE'] == 'clang-cl':
# clang-cl crashes trying to PGO this file (Bug 1479842)
SOURCES['gfxFontInfoLoader.cpp'].no_pgo = True
UNIFIED_SOURCES += [
'CJKCompatSVS.cpp',
'gfxAlphaRecovery.cpp',
@ -193,7 +199,6 @@ UNIFIED_SOURCES += [
'gfxFont.cpp',
'gfxFontEntry.cpp',
'gfxFontFeatures.cpp',
'gfxFontInfoLoader.cpp',
'gfxFontMissingGlyphs.cpp',
'gfxFontSrcPrincipal.cpp',
'gfxFontSrcURI.cpp',