Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add -MMD option #1673

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add -MMD option #1673

wants to merge 8 commits into from

Conversation

piecea
Copy link

@piecea piecea commented May 16, 2022

Here is the -MMD option in vppreproc.

Copy link
Member

@wsnyder wsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for preparing this, here's some feedback:

vppreproc Outdated
# produces a list of makefile dependency rules suitable for use by a make utility
if ($opt_mmd) {
my $opt_output_filename_d; # .d file
my $dep_file; # MMD target
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move to inside foreach, just before set

vppreproc Outdated
my $dep_file; # MMD target
if ($opt_output_filename) {
# Create a single .d
my($filename, $dirs, $suffix) = File::Basename::fileparse($opt_output_filename, qr/\.[^.]*/);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
my($filename, $dirs, $suffix) = File::Basename::fileparse($opt_output_filename, qr/\.[^.]*/);
my ($filename, $dirs, $suffix) = File::Basename::fileparse($opt_output_filename, qr/\.[^.]*/);

@piecea
Copy link
Author

piecea commented May 17, 2022

Thanks for the feedback. Here are the changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants