Bug 1620177 - Fix differences in dependentlibs.list between Windows native and cross builds. r=rstewart

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Hommey 2020-03-06 21:23:24 +00:00
Родитель d5d2276a11
Коммит dfb4ce4d61
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -26,7 +26,13 @@ def dependentlibs_win32_objdump(lib):
for line in proc.stdout:
match = re.match('\s+DLL Name: (\S+)', line)
if match:
deps.append(match.group(1))
# The DLL Name found might be mixed-case or upper-case. When cross-compiling,
# the actual DLLs in dist/bin are all lowercase, whether they are produced
# by the build system or copied from WIN32_REDIST_DIR. By turning everything
# to lowercase, we ensure we always find the files.
# At runtime, when Firefox reads the dependentlibs.list file on Windows, the
# case doesn't matter.
deps.append(match.group(1).lower())
proc.wait()
return deps