Closed elfring closed 6 years ago
elfring ... those are pointless crap. you can build with gcc *.c .
@elfring it takes engineering discipline to only add dependencies when they are needed. there is no reason for them now, in fact any dependency reduce reliability, this whole exchange is just a distraction from the actual compiler work anyway...
edit:
To elaborate further, there are currently no complicated features to scan for, and only one user who has a uniform environment.
This is not a big project at all, so you don't really need a sophisticated build system. Our current Makefile is satisfactory. Reducing dependency to external tools is an important design goal. Make is available everywhere, and people know it. So is the shell. Other build systems are not. Anyways, 9cc is so experimental that I don't want to change that kind of thing at the moment. I'm focusing on code itself, and I'l keep everything else "boring". That's intentional.
I suggest to reuse a higher level build system than your current small make script so that powerful checks for software features will become easier.