Replies: 5 comments 5 replies
-
jom Support paths longer than MAX_PATH |
Beta Was this translation helpful? Give feedback.
-
I think we should add such instructions if and only if we have observed that building these ports with that flag enabled in a location wherein the directory structure would result in paths that are too long succeeds with the flag set and fails without. Note that this probably means build tools and similar would need to be manifested and I'm pretty sure Qt depends on some that are not, but only testing would tell. See https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later for additional details. (I believe there were version(s) of Windows 10 that had bugs where either the flag or the manifest were not correct checked but that was considered a bug) |
Beta Was this translation helpful? Give feedback.
-
Actually, according to this ticket [1] It appears the MAX_PATH workaround is already enabled in GitHub windows images. Is this correct, and if so, does vcpkg check for the registry change? I am getting this warning on my builds at present. |
Beta Was this translation helpful? Give feedback.
-
I think this can be closed since the analyses which was done to include a patched ninja with long paths came to the conclusion that even if ninja would support long paths the compiler tools wouldn't support it. As such enabling long paths on Windows does effectively do nothing unless all the required tools would support long paths on windows. |
Beta Was this translation helpful? Give feedback.
-
https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry |
Beta Was this translation helpful? Give feedback.
-
The text in: https://github.com/microsoft/vcpkg/blob/master/scripts/cmake/vcpkg_buildpath_length_warning.cmake
Could offer a link to the Microsoft document concerning the issue, which is: https://docs.microsoft.com/en-gb/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later
This is on the condition that Windows 10 is the host operating system.
Currently, the console just gets spammed with:
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions