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 451a0aabd721778f05bbf148fb40b3d707681bf1
parent c3231333fd25b5768a236009866aeb24b071cfc9
Author: Michael Forney <mforney@mforney.org>
Date:   Wed, 13 Feb 2019 21:53:45 -0800

driver: Ignore -std= and -pedantic

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

diff --git a/driver.c b/driver.c @@ -322,6 +322,7 @@ main(int argc, char *argv[]) arrayaddptr(&inputs, arg); continue; } + /* TODO: use a binary search for these long parameters */ if (strcmp(arg, "-nostdlib") == 0) { flags.nostdlib = true; } else if (strcmp(arg, "-static") == 0) { @@ -335,6 +336,10 @@ main(int argc, char *argv[]) arrayaddptr(&phases[PREPROCESS].cmd, *++argv); } else if (strcmp(arg, "-pipe") == 0) { /* ignore */ + } else if (strncmp(arg, "-std=", 5) == 0) { + /* ignore */ + } else if (strcmp(arg, "-pedantic") == 0) { + /* ignore */ } else { if (arg[2] != '\0' && strchr("cESs", arg[1])) usage();