]> git.tdb.fi Git - builder.git/commitdiff
Make sure the main target of a side effect is prepared
authorMikko Rasa <tdb@tdb.fi>
Mon, 2 Jan 2023 22:48:26 +0000 (00:48 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 2 Jan 2023 22:51:47 +0000 (00:51 +0200)
Tool invocation is formed from the main target.

source/lib/target.cpp

index f13afb8d07bb68c8da074a217dbd6c6bbd5ee293..f99b0bc4165d1f4c342ebf9c9127159b90ca4bd2 100644 (file)
@@ -122,6 +122,8 @@ void Target::prepare()
        }
 
        state = PREPARING;
+       if(primary_target)
+               primary_target->prepare();
        /* Prepare existing dependencies early, because their information may be
        needed to find other dependencies. */
        for(Target *d: depends)