3 ms·
There is no such thing as a “decent C/C++ build system”; that’s a fallacy. Master the compiler front-end’s -M option.
by Annatar 9y ago
There is no such thing as a “decent C/C++ build system”; that’s a fallacy.
Master the compiler front-end’s -M option.
- gmueckl 9y agoYour world must be quite small then if all you have are conpilers that unterstand that flag. There are perfectly workable compilers out there without this feature. And with a good build system (thus thread has mentioned a few) you do not have to care. I can show you build acripts for C++ programs that know nothing about the compiler. They work with GCC on Linux, MSVC on Windows and clang on OS X without a single change. Hiw is that not decent?
- Annatar 9y agoScons and CMake are both heavier garbage, for mostly the same reasons: both require unnecesary dependencies, Scons requires Python which is a monster, and CMake is a bitch to build. Neither fully implement all of Make's capabilities, because both authors never really mastered Make and misunderstand it. As a final slap to CMake, in the end it generates Makefiles, proving that Make is the be all, end all when it comes to build engines. You better buy the book on Make and learn it and learn it well instead of wasting your time on toy tools. The longer you try to avoid it, the more time you'll waste.
- jstimpfle 9y agoHey, if you think Make is so superior and flawless, I challenge you to show what you think my build would look like as a maintainable (non-generated) Makefile? The build description I've listed is not a trivial build but it's not super complex either. I need to generate Visual Studio project files as well, but let's ignore that for now.
- lolikoisuru 9y agoI would like to attempt this even though I'm not the person you're replying to. There is just one problem though, your page isn't loading.
- jstimpfle 9y agoIt works again. Had added IPv6 but broken IPv4 access.
- lolikoisuru 9y agoIs the codebase you're trying to compile available somewhere?
- jstimpfle 9y agoNot in a shape you'll want to bother with, sorry. And cleaning that up is currently not one of my priorities right now (it's a toy project).
- lolikoisuru 9y agoThen what was the point of your comment to begin with?
- jstimpfle 9y agoYou could still make a Makefile to show how you'd do it. (But you don't have to). Listen, I'm not fighting ego fights here. Your borderline personal attacks (one of which was apparently removed, either by you or a moderator) are not appreciated. And I'm not a clueless idiot. If you still want to discuss something for good, please write me an email. It does not need to go here. You can also easily find the repository with a web search, if you decide to bother with it.
- lolikoisuru 9y ago