Re:I learnt C++ in 2018 and have no regrets
by RealityVoid on Monday January 07, 2019 @03:10PM
(#18849469)
How would you evaluate Meson as a build system for C projects? I _think_ C and C++ build process is very similar, but I only work professionally with C, so maybe there are some quirks to C++ I am not aware of.
Basically, I wonder if you would recommend Meson as a build system for a mostly C project with maybe some C++ parts and some extra external tools ran on top.
Re:I learnt C++ in 2018 and have no regrets
by jandrewrogers on Monday January 07, 2019 @03:26PM
(#18849632)
I agree with your presumption that it almost certainly should work well but I haven't actually used it for a C project. Offhand, I can't think of anything that I would expect to break.
Re:I learnt C++ in 2018 and have no regrets
by buovjaga on Monday January 07, 2019 @03:37PM
(#18849760)
Plenty of C projects use Meson: https://mesonbuild.com/Users.html
The tradeoff is that Meson takes a fairly rigorous "one correct way" approach to how you organize your builds. It doesn't prevent you from doing anything functional but what it forces you to do is very sensible, minimizes the potential for issues in diverse environments, and reduces the degrees of freedom Meson has to sort out. A prohibition on unfettered creativity, advisable or not, in how you manage your builds has turned out to be a blessing in my experience because it codifies what are very arguably best practices in code and then makes it easy to implement them.
I'm fairly agnostic on build systems -- I've probably used a dozen -- but Meson, even in its relatively youthful state, is the best C++ build system I've used so far in terms of getting things done quickly in a maintainable way that is easy to use for average programmers.