veripool / verilog-perl

Verilog parser, preprocessor, and related tools for the Verilog-Perl package
https://www.veripool.org/verilog-perl
Artistic License 2.0
121 stars 34 forks source link

Vppreproc: MMD feature #1672

Open piecea opened 2 years ago

piecea commented 2 years ago

Could the -MMD option (like that of gcc, but also of verilator) have a place in vppreproc? Note –MMD generates a dependency output file for all the user files. We are interested in this feature for automating our compile flow.

If vppreproc wants to focus only on preprocessing, maybe a -dump-includes option is more suitable?

Using only the verilog api, we have prototyped an implementation of the -MMD option and can share the code. but, we think it would be useful to be provide this option natively in vppreproc.

wsnyder commented 2 years ago

I'd probably accept this if you want to make a pull request.

I would note you might alternatively use "verilator -MMD -E" which should already support this.