cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 4d591275802ae08377d90c5881a93803350e42d6
parent eb5b04cc93d00cdc65259d3943f21b9fb4587349
Author: Andrew Chambers <ac@acha.ninja>
Date:   Fri,  1 Mar 2019 21:36:49 +1300

Add -M and -MM to support our own makefile.

Diffstat:
Mdriver.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/driver.c b/driver.c @@ -408,6 +408,14 @@ main(int argc, char *argv[]) input->lib = true; input->phase = LINK; break; + case 'M': + if (strcmp(arg, "-M") == 0 || strcmp(arg, "-MM") == 0) { + arrayaddptr(&phases[PREPROCESS].cmd, arg); + last = PREPROCESS; + } else { + usage(NULL); + } + break; case 'O': /* ignore */ break;