mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-04 02:57:38 +00:00
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:
parent
7d3e1ba397
commit
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']:
|
||||
|
Loading…
Reference in New Issue
Block a user