6 ms·
Neat, but I wonder what the motivation for this is. I assumed that for the majority of projects ninja itself adds little overhead to the total build time.
by sweetgiorni 4y ago
Neat, but I wonder what the motivation for this is. I assumed that for the majority of projects ninja itself adds little overhead to the total build time.
- lmz 4y agoMaybe it saves them from having to build a c++ compiler to build ninja.
- rleigh 4y agoDoubtful. Both GCC and LLVM are written in C++ so you have to build a C++ compiler irrespective of whether you actually want one! I suspect it's more that they don't like C++ and want to use C for everything. Whether that actually translates into a higher quality tool or a more performant tool, we can only imagine.
- mburee 4y agoEhhh, the creator also works on a minimalist Linux distro (Oasis) and one of their goals is to build with cproc (a C frontend for the QBE backend), all written in ISO C. He uses Samurai in his distro, so it all fits together pretty well
- Rochus 4y agoYou can just use a GCC version < 4.8 or something like e.g. TCC if you want to avoid C++. Though Ninja is implemented in a very moderate C++ style; I'm able to compile it even with GCC <= 4.8; it even seems to compile on pre-C++11 compilers.
- ducktective 4y agoC project, C build tool. There is also Muon [1] for Meson (Python). [1]: https://sr.ht/~lattis/muon/ https://sr.ht/~lattis/muon/
- Rochus 4y agoMuon is a very nice project; especially the bootstrap means are great; unfortunately it doesn't seem to run on Windows and personally I don't think that Meson is a much better system/language than e.g. CMake; otherwise I would have used Muon instead of implementing BUSY.
- jcelerier 4y agoI assume you're also not using a C compiler written in C++, thus neither clang, GCC nor msvc ?
- ducktective 4y agoIt's always beneficial if some people choose to follow idealistic routes ;) There are minimal C compilers written in C around, though, admittedly, not as relevant as GCC/clang/MSVC
- jcelerier 4y ago> It's always beneficial if some people choose to follow idealistic routes ;) As much as I believe this to be true in politics, I think it's really really wrong, if not actively harmful, in tech