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/test/target.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'build2/test/target.cxx') diff --git a/build2/test/target.cxx b/build2/test/target.cxx index a5801e8..3bf00c1 100644 --- a/build2/test/target.cxx +++ b/build2/test/target.cxx @@ -11,7 +11,7 @@ namespace build2 { namespace test { - static target* + static pair> testscript_factory (const target_type&, dir_path d, dir_path o, @@ -21,7 +21,8 @@ namespace build2 if (!e) e = (n == "testscript" ? string () : "test"); - return new testscript (move (d), move (o), move (n), move (e)); + return make_pair ( + new testscript (move (d), move (o), move (n)), move (e)); } static optional -- cgit v1.1