From: Mikko Rasa Date: Mon, 2 Jan 2023 22:48:26 +0000 (+0200) Subject: Make sure the main target of a side effect is prepared X-Git-Url: http://git.tdb.fi/?p=builder.git;a=commitdiff_plain;h=9c2bb20163b1dc5b17c46086a744ec117433248c Make sure the main target of a side effect is prepared Tool invocation is formed from the main target. --- diff --git a/source/lib/target.cpp b/source/lib/target.cpp index f13afb8..f99b0bc 100644 --- a/source/lib/target.cpp +++ b/source/lib/target.cpp @@ -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)