Skip to content

Commit 32272ff

Browse files
committed
Mention -MD and -MMD as passed through to the preprocessor in man-page
Update `gnu_prepro_help` for `-MD` and `-MMD`
1 parent 91c5e87 commit 32272ff

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

doc/ccomp.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Pass comma separated arguments in <args> to the preprocessor.
110110
Pass argument <arg> to the preprocessor.
111111
.
112112
.TP
113-
.BR \-C ", " \-CC ", " \-finput-charset ", " \-idirafter ", " \-imacros ", " \-iquote ", " \-isystem ", " \-M ", " \-MF ", " \-MG ", " \-MM ", " \-MP ", " \-MQ ", " \-MT ", " \-nostdinc ", " \-P
113+
.BR \-C ", " \-CC ", " \-finput-charset ", " \-idirafter ", " \-imacros ", " \-iquote ", " \-isystem ", " \-M ", " \-MD ", " \-MF ", " \-MG ", " \-MM ", " \-MMD ", " \-MP ", " \-MQ ", " \-MT ", " \-nostdinc ", " \-P
114114
For GNU backends these options are recognized by CompCert and passed through to the preprocessor.
115115
.
116116
.SS

driver/Frontend.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ let gnu_prepro_help =
192192
{| -M Output a rule suitable for make describing the
193193
dependencies of the main source file
194194
-MM Like -M but do not mention system header files
195+
-MD Like -M but writes output to a .d file as a side-
196+
effect of compilation
197+
-MMD Like -MD but do not mention system header files
195198
-MF <file> Specifies file <file> as output file for -M or -MM
196199
-MG Assumes missing header files are generated for -M
197200
-MP Add a phony target for each dependency other than

0 commit comments

Comments
 (0)