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
TL;DR: dependencies are not handled properly with the current makefile.
This is not a problem when checking out one version and compiling once. But in a dev environment, changing files does not always trigger all required re-compilation. For a more detailed explanation, see @sashakhcomment and proposed fix.
I'm by no mean an expert at compilation and makefiles, so I'd be grateful for other views on this to pick a solution.
The text was updated successfully, but these errors were encountered:
This causes the c++ compiler to emit .d files that contain the header-cpp dependency information. These files are then included during the next run of make.
Pro: this does not require manual invocation of make dep, everything is handled automatically
Contra: a lot of .d files in the src-directory. They (aswell as the .o files) should at least be gitignored.
Thanks for the input @krypt-n. The advantage I see with this approach is that there is no need to use an additional custom target to generate the dependency files, so this would work out of the box for anyone just using plain make.
The downside of having .d files all around does not look problematic to me, as long as they're ignored by git.
This ticket captures a problem discussed in #76.
TL;DR: dependencies are not handled properly with the current makefile.
This is not a problem when checking out one version and compiling once. But in a dev environment, changing files does not always trigger all required re-compilation. For a more detailed explanation, see @sashakh comment and proposed fix.
I'm by no mean an expert at compilation and makefiles, so I'd be grateful for other views on this to pick a solution.
The text was updated successfully, but these errors were encountered: