Skip to content

Commit 76f7fea

Browse files
committed
Pass options -MD and -MMD to the preprocessor
Like the other GNU `-M` options. Fixes: #553
1 parent b2122a6 commit 76f7fea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

driver/Frontend.ml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ let gnu_prepro_actions = [
159159
Exact "-MP", Self gnu_prepro_opt;
160160
Exact "-MT", String (gnu_prepro_opt_key "-MT");
161161
Exact "-MQ", String (gnu_prepro_opt_key "-MQ");
162+
Exact "-MD", Self gnu_prepro_opt;
163+
Exact "-MMD", Self gnu_prepro_opt;
162164
Exact "-nostdinc", Self (fun s -> gnu_prepro_opt s; use_standard_headers := false);
163165
Exact "-imacros", String (gnu_prepro_opt_key "-imacros");
164166
Exact "-idirafter", String (gnu_prepro_opt_key "-idirafter");

0 commit comments

Comments
 (0)