aboutsummaryrefslogtreecommitdiff
path: root/build2/target-type
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-02-02 10:20:50 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-02-13 12:42:41 +0200
commit53f02bf28dae507a51515ed6ac03226d68816494 (patch)
tree234838165e802df9c777324c0fe766ce0190d814 /build2/target-type
parent601ffbd700e7c11a101215d641ea09d0181d4771 (diff)
Store extension in target map key rather than in target
This is in preparation for locking its modification/access.
Diffstat (limited to 'build2/target-type')
-rw-r--r--build2/target-type12
1 files changed, 7 insertions, 5 deletions
diff --git a/build2/target-type b/build2/target-type
index ab21aa0..81f6916 100644
--- a/build2/target-type
+++ b/build2/target-type
@@ -41,11 +41,13 @@ namespace build2
const char* name;
const target_type* base;
- target* (*factory) (const target_type&,
- dir_path,
- dir_path,
- string,
- optional<string>);
+ // Return target and extension.
+ //
+ pair<target*, optional<string>> (*factory) (const target_type&,
+ dir_path,
+ dir_path,
+ string,
+ optional<string>);
optional<string> (*extension) (const target_key&,
const scope&,