community
community copied to clipboard
Windows system PATH overflow with modular boost library paths
Can we exclude this:
https://github.com/bincrafters/conan-boost_base/blob/06b161a93da699d70d8fe7df162b30e7078a243c/conanfile.py#L716
at least for Windows static build? PATH size is quite limited there (see Limitation to the length of the System PATH variable), and numerous modular boost lib paths easily overflow it. And once it's overflown everything silently stops working.
Of course, it's only a workaround, not a real solution. If someone can propose a real one (maybe on conan.io level?) I would love to know it.
I think it should be safe to remove for static. @uilianries @solvingj @grafikrobot WDYT?
So short paths is not enough?
What about enabling long paths?
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#enable-long-paths-in-windows-10-version-1607-and-later
So short paths is not enough?
Looks like that.
What about enabling long paths?
They won't help. The problem is that max PATH environment variable size is quite limited, even under Windows 10 (see the Intel article that I mentioned above).
I suggest to make proposed change, as it's useless to pollute binpaths for static builds anyway