diff options
Diffstat (limited to 'build2/target')
-rw-r--r-- | build2/target | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/target b/build2/target index 103b719..681fcee 100644 --- a/build2/target +++ b/build2/target @@ -985,13 +985,13 @@ namespace build2 // should be mtime_target and the members get the mtime from it. // timestamp - mtime () const + mtime (bool load = true) const { const mtime_target* t (raw_state == target_state::group ? static_cast<const mtime_target*> (group) : this); - if (t->mtime_ == timestamp_unknown) + if (load && t->mtime_ == timestamp_unknown) t->mtime_ = t->load_mtime (); return t->mtime_; |