Bug 1570597 - Pass the -delayload flag to lld correctly for MinGW builds r=firefox-build-system-reviewers,mshal

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Tom Ritter 2019-08-28 14:18:29 +00:00
Родитель 7d3e1ba397
Коммит 004d9a25d7
1 изменённых файлов: 6 добавлений и 2 удалений

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

@ -1056,8 +1056,12 @@ class TreeMetadataEmitter(LoggingMixin):
if context.config.substs.get('OS_TARGET') == 'WINNT' and \
context['DELAYLOAD_DLLS']:
context['LDFLAGS'].extend([('-DELAYLOAD:%s' % dll)
for dll in context['DELAYLOAD_DLLS']])
if context.config.substs.get('CC_TYPE') != 'clang':
context['LDFLAGS'].extend([('-DELAYLOAD:%s' % dll)
for dll in context['DELAYLOAD_DLLS']])
else:
context['LDFLAGS'].extend([('-Wl,-Xlink=-DELAYLOAD:%s' % dll)
for dll in context['DELAYLOAD_DLLS']])
context['OS_LIBS'].append('delayimp')
for v in ['CMFLAGS', 'CMMFLAGS']: