rui314 / 9cc

A Small C Compiler
MIT License
1.83k stars 155 forks source link

Addition of a build system generator #3

Closed elfring closed 6 years ago

elfring commented 6 years ago

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.

andrewchambers commented 6 years ago

elfring ... those are pointless crap. you can build with gcc *.c .

elfring commented 6 years ago
andrewchambers commented 6 years ago

@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.

rui314 commented 6 years ago

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.