aboutsummaryrefslogtreecommitdiff
path: root/build/cxx
diff options
context:
space:
mode:
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