Bug 1527371 - Show linker time breakdown for xul.dll r=froydnj

COFF-flavored lld collects timing stats about various phases of linking. This might be useful to have in logs. I left it off in developer builds to avoid spamming tight edit-compile cycles.

Differential Revision: https://phabricator.services.mozilla.com/D33319

--HG--
extra : moz-landing-system : lando
This commit is contained in:
David Major 2019-05-31 17:13:34 +00:00
Родитель 6ecc4f39a9
Коммит 4ce08e1038
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -58,6 +58,10 @@ def Libxul(name, output_category=None):
# and config/version.mk would lift the $(srcdir)
RCINCLUDE = '$(DEPTH)/toolkit/library/xulrunner.rc'
# Show a breakdown of linker time. (Too verbose for local builds.)
if CONFIG['CC_TYPE'] == 'clang-cl' and not CONFIG['DEVELOPER_OPTIONS']:
LDFLAGS += ['-time']
Libxul_defines()
if CONFIG['MOZ_NEEDS_LIBATOMIC']: