From 9c2bb20163b1dc5b17c46086a744ec117433248c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 3 Jan 2023 00:48:26 +0200 Subject: [PATCH] Make sure the main target of a side effect is prepared Tool invocation is formed from the main target. --- source/lib/target.cpp | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.43.0