]> git.tdb.fi Git - builder.git/blobdiff - source/lib/target.cpp
Make sure the main target of a side effect is prepared
[builder.git] / 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)