aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/prerequisite.cxx
diff options
context:
space:
mode:
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 */)