From 49ebef5d0092366fd0639c78b61a066646ac218e Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 14 Sep 2021 16:43:30 -0700 Subject: driver: Pass -nostdinc on to preprocessor --- driver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 5f7d3ed..441078e 100644 --- a/driver.c +++ b/driver.c @@ -426,6 +426,8 @@ main(int argc, char *argv[]) /* TODO: use a binary search for these long parameters */ if (strcmp(arg, "-nostdlib") == 0) { flags.nostdlib = true; + } else if (strcmp(arg, "-nostdinc") == 0) { + arrayaddptr(&stages[PREPROCESS].cmd, arg); } else if (strcmp(arg, "-static") == 0) { arrayaddptr(&stages[LINK].cmd, arg); } else if (strcmp(arg, "-emit-qbe") == 0) { -- cgit v1.2.3