aboutsummaryrefslogtreecommitdiff
path: root/driver.c
diff options
context:
space:
mode:
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/driver.c b/driver.c
index 2b1336d..df50b0f 100644
--- 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;