Hacker News new | ask | show | jobs
by pfultz2 3158 days ago
> Wonder if Nix package manager would work here.

The problem is extra work is needed to support things like cross compilation.

Instead, you want to pass a toolchain file that describes the build environment(including for cross-compilation) to the build system, and it will compile it correctly for the target. This is the way cmake works, but we should have standard toolchain file that can be used across all build systems instead of requiring everyone to use cmake.