You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This output has a problem: if a.rs is deleted from the filesystem and dependencies on it erased from lib.rs, then make will attempt to look for a rule to generate a.rs when we request that things be remade. Not finding one, it will helpfully complain that there is no rule to make a.rs and exit.
This can, of course, be worked around by clearing out your entire build directory and starting over, but this seems undesirable.
GCC has an option (-MP) to produce "phony" targets for all the dependencies of the object file; this prevents issues in cases like the above: