aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-28 11:12:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-28 11:12:02 +0200
commitba83ffbaf5941366a399e3bc340bed3f55cc977c (patch)
tree1644d0159f868b82135d0277d4a79a4be1c852de /build2/target
parentd3c5559f9d0969ec91ed0113223b2ec18e53c9ff (diff)
Fix Windows rpath support
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target4
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_;