[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Native compilation on Windows, was Re: Bootstrap Compilation Speed
From: |
Óscar Fuentes |
Subject: |
Re: Native compilation on Windows, was Re: Bootstrap Compilation Speed |
Date: |
Tue, 01 Feb 2022 16:28:57 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
"H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de> writes:
> I realised that ntldd.exe doesn't show any msys/mingw dependencies at
> all, only Windows stuff! -> So I removed all Windows references from
> PATH. (Don't ask me why ntldd searches Windows paths first.)
Are you saying that you have dlls with the same name under /mingw64 and
/Windows ?
> Then, it seem's, that the msys/mingw people changed the tree layout of
> their files!
No, we didn't.
> When I'm changing "msys64" with "mingw64" in
> build-dep-zips.py:
>
> def ntldd_munge(out):
> deps = out.splitlines()
> rtn = []
> for dep in deps:
> ## Output looks something like this
>
> ## KERNEL32.dll => C:\Windows\SYSTEM32\KERNEL32.dll
> (0x0000000002a30000)
> ## libwinpthread-1.dll => C:\msys64\mingw64\bin\libwinpthread-1.dll
> (0x0000000000090000)
>
> ## if it's the former, we want it, if its the later we don't
The comment above seems reversed.
> splt = dep.split()
> ## if len(splt) > 2 and "msys64" in splt[2]:
> if len(splt) > 2 and "mingw64" in splt[2]:
> print("Adding dep", splt[0])
> rtn.append(splt[0].split(".")[0])
>
> return rtn
>
> It copies much more DLLs to the deps folder. :-)
Probably your MSYS2 install is not in a directory named "msys64" (the
"in" operator in Python is case-sensitive, isn't it?)