aboutsummaryrefslogtreecommitdiff
path: root/build/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-24 16:39:55 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-24 16:39:55 +0200
commit1d6e68fda762535fa8508f94ca254a79f293edb2 (patch)
tree7b97edd9f1786cd610c1f41e720d2b105dd87cbc /build/cxx
parentbb4f9e6498ba715911f83e0dc221a5b1b86baf51 (diff)
Add support for generated test input/output
Diffstat (limited to 'build/cxx')
-rw-r--r--build/cxx/compile.cxx5
1 files changed, 1 insertions, 4 deletions
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<recipe_function*> ());
-
- 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