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-key | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'build2/target-key') diff --git a/build2/target-key b/build2/target-key index 7905f8a..0eae11f 100644 --- a/build2/target-key +++ b/build2/target-key @@ -26,9 +26,7 @@ namespace build2 const dir_path* const dir; // Can be relative if part of prerequisite_key. const dir_path* const out; // Can be relative if part of prerequisite_key. const string* const name; - const optional& ext; - - static const optional nullext; + mutable optional ext; // Absent - unspecified, empty - none. template bool is_a () const {return type->is_a ();} -- cgit v1.1