aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-19 17:10:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-19 17:10:51 +0200
commit89a9f8174ec858bf6df8515a84f061f211dec551 (patch)
tree030daad1364ea38a4f2ec22c57b41aeeb8b1b6e8 /build2/target
parent3ec07c196c9ab86db09c77bff7eb11cd5a5a9b1e (diff)
Add import library target libi{}, make libs{} the DLL
In the end, having libs{} be the DLL with import library being its member is more natural than making libs{} the import library and having dll{} as its member.
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target12
1 files changed, 8 insertions, 4 deletions
diff --git a/build2/target b/build2/target
index 28753df..dfc6abc 100644
--- a/build2/target
+++ b/build2/target
@@ -954,10 +954,12 @@ namespace build2
public:
using target::target;
- // Generally, modification time for a target can only be queried
- // after a rule has been matched since that's where the path is
- // normally gets assigned. Normally, however, it would make sense
- // to first execute the rule to get the "updated" timestamp.
+ // Generally, modification time for a target can only be queried after a
+ // rule has been matched since that's where the path is normally gets
+ // assigned (if the path was not assigned and no timestamp was set
+ // manually, this function will return timestamp_unknown). Normally,
+ // however, it would make sense to first execute the rule to get the
+ // "updated" timestamp.
//
// The rule for groups that utilize the group state is as follows:
// if it has any members that are mtime_targets, then the group
@@ -986,6 +988,8 @@ namespace build2
}
protected:
+ // Return timestamp_unknown if the mtime cannot be loaded.
+ //
virtual timestamp
load_mtime () const = 0;