aboutsummaryrefslogtreecommitdiff
path: root/driver.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-14 16:43:30 -0700
committerMichael Forney <mforney@mforney.org>2021-09-14 16:43:30 -0700
commit49ebef5d0092366fd0639c78b61a066646ac218e (patch)
treebc55356b335305488fd515cd35713c01a81b7e9f /driver.c
parente049bdb1bf525af3dc9d813940e6f4fa92c04b77 (diff)
driver: Pass -nostdinc on to preprocessor
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 2 insertions, 0 deletions
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) {