From 1d6e68fda762535fa8508f94ca254a79f293edb2 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Jul 2015 16:39:55 +0200 Subject: Add support for generated test input/output --- build/cxx/compile.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'build/cxx/compile.cxx') diff --git a/build/cxx/compile.cxx b/build/cxx/compile.cxx index a12650f..4095598 100644 --- a/build/cxx/compile.cxx +++ b/build/cxx/compile.cxx @@ -642,10 +642,7 @@ namespace build // them is fallback file_rule. So we are going to do a little // fast-path optimization by detecting this common case. // - recipe_function* const* recipe ( - pt.recipe (a).target ()); - - if (recipe == nullptr || *recipe != &file_rule::perform_update) + if (!file_rule::uptodate (a, pt)) { // We only want to restart if our call to execute() actually // caused an update. In particular, the target could already -- cgit v1.1