Meanwhile in 2025: Microsoft's C++ compiler cannot handle long paths.

@vitaut This is one of those catch-22 things where that everyone needs to fix it to have a working experience disincentivizes anyone from fixing it.

There have been attempts but they run into some other part of the system that doesn't work which makes the churn to touch it not worth doing.

@malwareminigun Do you know if [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"LongPathsEnabled"=dword:00000001 helps with cl?

@vitaut @malwareminigun you'd also need to inject a new manifest into cl.exe that enables long paths. But even if that does work (and that's a big if) cl is not a fully self-contained exe. It can call out to many other tools which would also need to be fixed.

If you did patch all relevant binaries with the manifest then chances are that at least one of those will be assuming MAX_PATH and break on longer paths. But feel free to try :)