aboutsummaryrefslogtreecommitdiff
path: root/build2/algorithm.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/algorithm.cxx')
-rw-r--r--build2/algorithm.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/build2/algorithm.cxx b/build2/algorithm.cxx
index e8e7777..734c545 100644
--- a/build2/algorithm.cxx
+++ b/build2/algorithm.cxx
@@ -53,7 +53,13 @@ namespace build2
// @@ OUT: for now we assume the prerequisite's out is undetermined.
// Would need to pass a pair of names.
//
- return search (*tt, n.dir, dir_path (), n.value, ext, &s, n.proj);
+ return search (*tt,
+ n.dir,
+ dir_path (),
+ n.value,
+ ext ? &*ext : nullptr,
+ &s,
+ n.proj);
}
target*
@@ -374,7 +380,7 @@ namespace build2
// Target is in the out tree, so out directory is empty.
//
- fsdir* r (&search<fsdir> (d, dir_path (), string (), nullopt, nullptr));
+ fsdir* r (&search<fsdir> (d, dir_path (), string (), nullptr, nullptr));
match (ml, a, *r);
t.prerequisite_targets.emplace_back (r);
return r;