From 75b778b75c14df7b93ab2efbd55bc65b80a72c15 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 2 Oct 2014 01:28:49 +0300 Subject: [PATCH] Also prepare transitive dependencies Mostly to make analyzer report correct results when source files are given on command line. --- source/target.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/target.cpp b/source/target.cpp index 0d8c2da..f9fe16b 100644 --- a/source/target.cpp +++ b/source/target.cpp @@ -140,6 +140,8 @@ void Target::prepare() (*i)->prepare(); broken |= (*i)->is_broken(); } + for(Dependencies::iterator i=trans_depends.begin(); i!=trans_depends.end(); ++i) + (*i)->prepare(); check_rebuild(); if(broken) -- 2.45.2