зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
7d3e1ba397
Коммит
004d9a25d7
|
@ -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']:
|
||||
|
|
Загрузка…
Ссылка в новой задаче