HadrienG2 / hwlocality

Rust bindings to Open MPI Portable Hardware Locality "hwloc" library, covering version 2.0 and above.
MIT License
20 stars 5 forks source link

The fully qualified file name must be less than 260 characters #87

Closed nazar-pc closed 8 months ago

nazar-pc commented 8 months ago

There is some kind of test test that in my project (when building for a specific target with -Z build-std) exceeds path limit:

C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppBuild.targets(382,5): error MSB3491: Could not write lines to file "hwloc_get_largest_objs_inside_cpuset.dir\Release\hwloc_ge.C408B399.tlog\hwloc_get_largest_objs_inside_cpuset.lastbuildstate". Path: hwloc_get_largest_objs_inside_cpuset.dir\Release\hwloc_ge.C408B399.tlog\hwloc_get_largest_objs_inside_cpuset.lastbuildstate exceeds the OS max path limit. The fully qualified file name must be less than 260 characters. [C:\actions-runner_work\subspace\subspace\target\x86_64-pc-windows-msvc\production\build\hwlocality-sys-aa1805acd0c31c09\out\build\tests\hwloc_get_largest_objs_inside_cpuset.vcxproj]

Do you think it is possible to shorten it?

Also I'm wondering why tests are built when I just use it as a library dependency.

UPD: I have a fix, will submit a bit later.