aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/link.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/link.cxx')
-rw-r--r--build2/cc/link.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx
index 8010598..e1dac16 100644
--- a/build2/cc/link.cxx
+++ b/build2/cc/link.cxx
@@ -337,7 +337,7 @@ namespace build2
if (t.member != nullptr) // Might already be there.
assert (t.member->type () == tt);
else
- t.member = &search (tt, t.dir, t.out, t.name, nullptr, nullptr);
+ t.member = &search (tt, t.dir, t.out, t.name, nullopt, nullptr);
file& r (static_cast<file&> (*t.member));
r.recipe (a, group_recipe);
@@ -519,7 +519,7 @@ namespace build2
// obj*{} is always in the out tree.
//
target& ot (
- search (tt, d, dir_path (), *cp.tk.name, nullptr, cp.scope));
+ search (tt, d, dir_path (), *cp.tk.name, nullopt, cp.scope));
// If we are cleaning, check that this target is in the same or
// a subdirectory of our project root.