From 53f02bf28dae507a51515ed6ac03226d68816494 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 2 Feb 2017 10:20:50 +0200 Subject: Store extension in target map key rather than in target This is in preparation for locking its modification/access. --- build2/target-type | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'build2/target-type') 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); + // Return target and extension. + // + pair> (*factory) (const target_type&, + dir_path, + dir_path, + string, + optional); optional (*extension) (const target_key&, const scope&, -- cgit v1.1