aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/prerequisite.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2024-02-12 05:48:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2024-02-12 05:48:25 +0200
commitba8e7dccf1257fbec9c7a2eac8729fcec684a9ea (patch)
tree948b21f8e6c79f0a3ef919c67b7a88b67f26e23b /libbuild2/prerequisite.cxx
parent7bbe8042dbbea81c713576e1ce69d00bbba5d4b6 (diff)
Extend class prerequisite constructors
Diffstat (limited to 'libbuild2/prerequisite.cxx')
-rw-r--r--libbuild2/prerequisite.cxx4
1 files changed, 2 insertions, 2 deletions
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 */)