diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-02 10:20:50 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:41 +0200 |
commit | 53f02bf28dae507a51515ed6ac03226d68816494 (patch) | |
tree | 234838165e802df9c777324c0fe766ce0190d814 /build2/cli/target.cxx | |
parent | 601ffbd700e7c11a101215d641ea09d0181d4771 (diff) | |
download | build2-53f02bf28dae507a51515ed6ac03226d68816494.tar.gz build2-53f02bf28dae507a51515ed6ac03226d68816494.tar.xz build2-53f02bf28dae507a51515ed6ac03226d68816494.zip |
Store extension in target map key rather than in target
This is in preparation for locking its modification/access.
Diffstat (limited to 'build2/cli/target.cxx')
-rw-r--r-- | build2/cli/target.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cli/target.cxx b/build2/cli/target.cxx index 3f09d306..48dc95be 100644 --- a/build2/cli/target.cxx +++ b/build2/cli/target.cxx @@ -48,7 +48,7 @@ namespace build2 return file_mtime (h->path ()); } - static target* + static pair<target*, optional<string>> cli_cxx_factory (const target_type&, dir_path d, dir_path o, @@ -66,7 +66,7 @@ namespace build2 targets.insert<cxx::cxx> (d, o, n, trace); targets.insert<cxx::ixx> (d, o, n, trace); - return new cli_cxx (move (d), move (o), move (n), move (e)); + return make_pair (new cli_cxx (move (d), move (o), move (n)), move (e)); } const target_type cli_cxx::static_type |