aboutsummaryrefslogtreecommitdiff
path: root/build2/rule
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-01-18 13:50:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-01-18 13:50:58 +0200
commitd402bc96297c6ed3dd6ee883dcff8cc39bd01030 (patch)
tree634d397f48022935926e26123c13ab8adad6796e /build2/rule
parent34be21a72a396240642acf3050eead875d3ed4b4 (diff)
Ignore prerequisite mtimes that are not linker inputs
This makes sure, for example, that we don't unnecessarily re-link an executable when its testscript prerequisite is changes.
Diffstat (limited to 'build2/rule')
-rw-r--r--build2/rule6
1 files changed, 1 insertions, 5 deletions
diff --git a/build2/rule b/build2/rule
index 8090fa0..015cf1a 100644
--- a/build2/rule
+++ b/build2/rule
@@ -39,8 +39,7 @@ namespace build2
apply (action, target&) const = 0;
};
- // Fallback rule that on update verifies that the file exists and is
- // not older than any of its prerequisites.
+ // Fallback rule that only matches if the file exists.
//
class file_rule: public rule
{
@@ -51,9 +50,6 @@ namespace build2
virtual recipe
apply (action, target&) const override;
- static target_state
- perform_update (action, target&);
-
static file_rule instance;
};