2 ms·
> On your common desktop Linux distro, I think C and C++ toolchains are the least difficult to setup and use without a container though In my experience, the h
by twic 3y ago
> On your common desktop Linux distro, I think C and C++ toolchains are the least difficult to setup and use without a container though
In my experience, the hard part is rigorously controlling the libraries a build uses. Using CMake, it's easy enough to add libraries to a build, but harder to stop the thing going off and looking round /usr/lib64 and so on. On my physical workstation, there is all sorts of stuff in there, because i have a desktop environment and a cornucopia of tools installed. I don't want a build using any of it! If a build needs a library which i have not explicitly added, i want it to fail, not use something from the system. But between default paths and rpaths in libraries and so on, that seems hard to do in a watertight way. I've done endless fiddling with sysroot flags, but i'm not sure it's not leaking. A container takes care of all that in a very definite way.