Re:Samurai: Ninja-compatible build tool written in C
by Rochus on Sunday August 14, 2022 @06:17AM
(#32458054)
You 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.
Re:Samurai: Ninja-compatible build tool written in C
by hulitu on Sunday August 14, 2022 @07:37AM
(#32458420)
Compiling gcc <= 4.8 is an exercise in pain because it needs some kernel headers which were removed.
Re:Samurai: Ninja-compatible build tool written in C
by Rochus on Sunday August 14, 2022 @07:47AM
(#32458482)
Not a big issue for someone who maintains his own Linux version, https://github.com/oasislinux/oasis.
Re:Samurai: Ninja-compatible build tool written in C
by mburee on Sunday August 14, 2022 @05:08AM
(#32457724)
Ehhh, 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
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.