This is an archive of the discontinued LLVM Phabricator instance.

Fix skipping of flags in getClangStripDependencyFileAdjuster
ClosedPublic

Authored by kastiglione on Nov 14 2017, 6:04 AM.

Details

Summary

The ArgumentsAdjuster returned from getClangStripDependencyFileAdjuster will
skip dependency flags, and also their associated values for those flags that
take an argument. This change corrects the handling of the -MD and -MMD
flags, which do not take an argument.

Event Timeline

kastiglione created this revision.Nov 14 2017, 6:04 AM

Add a continue;

probably a test would be useful

This revision is now accepted and ready to land.Nov 16 2017, 12:02 PM
This revision was automatically updated to reflect the committed changes.