From ba8e7dccf1257fbec9c7a2eac8729fcec684a9ea Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 12 Feb 2024 05:48:25 +0200 Subject: Extend class prerequisite constructors --- libbuild2/prerequisite.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libbuild2/prerequisite.cxx') diff --git a/libbuild2/prerequisite.cxx b/libbuild2/prerequisite.cxx index 7e14c76..bb77c9e 100644 --- a/libbuild2/prerequisite.cxx +++ b/libbuild2/prerequisite.cxx @@ -54,13 +54,13 @@ namespace build2 } prerequisite:: - prerequisite (const target_type& t) + prerequisite (const target_type& t, bool locked) : proj (nullopt), type (t.type ()), dir (t.dir), out (t.out), // @@ If it's empty, then we treat as undetermined? name (t.name), - ext (to_ext (t.ext ())), + ext (to_ext (locked ? t.ext_locked () : t.ext ())), scope (t.base_scope ()), target (&t), vars (*this, false /* shared */) -- cgit v1.1