]> git.tdb.fi Git - builder.git/commitdiff
Mark side effects for rebuilding together with their primary targets
authorMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 17:06:45 +0000 (19:06 +0200)
committerMikko Rasa <tdb@tdb.fi>
Tue, 3 Jan 2023 17:29:46 +0000 (19:29 +0200)
source/lib/filetarget.cpp

index a2bd3f0a1e0b1f922e2fe89feff2bd59483ca39e..a2d4ea47defd77395d62d020730327a55da3c5c5 100644 (file)
@@ -83,6 +83,8 @@ void FileTarget::check_rebuild()
                auto i = find_if(side_effects, [](const Target *s){ return s->needs_rebuild(); });
                if(i!=side_effects.end())
                        mark_rebuild((*i)->get_name()+" needs rebuilding");
+               if(primary_target && primary_target->needs_rebuild())
+                       mark_rebuild(primary_target->get_name()+" needs rebuilding");
        }
 
        if(!needs_rebuild() && package)