aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index 9daf6e6..95e1a15 100644
--- a/tcc.c
+++ b/tcc.c
@@ -301,6 +301,9 @@ int main(int argc, char **argv)
if (!s->ppfp)
tcc_error("could not write '%s'", s->outfile);
}
+ s->dffp = s->ppfp;
+ if (s->dflag == 'M')
+ s->ppfp = NULL;
}
tcc_set_output_type(s, s->output_type);