Hacker News new | ask | show | jobs
by dfgdghdf 1905 days ago
Build from source
1 comments

Then give me a package manager that can handle cross-compilation well.

Currently, it seems almost nobody is taking that into account when packaging their wares for consumption by CMake, or distribution by Conan. Or if they do give it some thought, it always ends up making dubious assumptions, like "Clang == Linux", or "MSVC == Windows".

I have one at work that does okay. If your project is based on cmake I can create the package very quickly, though most projects still don't create a cmake configuration file. If your project isn't cmake - well at best a day, and often I will spend weeks fighting your half baked build system that doesn't understand the common things I want to do. (in practice autotools projects have the options to cross compile but it doesn't actually work...)
CMake + vcpkg [0] does cross compilation, I've used it mynself. It's pretty good!

[0] https://stackoverflow.com/questions/58777810/how-to-integrat...

Rust/Go seem to manage this just without issues.