From 4168cda2363f3d796d0b9922852e249aac3131ba Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 4 Dec 2020 08:39:35 +0200 Subject: Mark Buildfile functions as pure or impure --- libbuild2/bin/functions.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libbuild2/bin') diff --git a/libbuild2/bin/functions.cxx b/libbuild2/bin/functions.cxx index 59fcdf2..1c6c0f4 100644 --- a/libbuild2/bin/functions.cxx +++ b/libbuild2/bin/functions.cxx @@ -24,12 +24,14 @@ namespace build2 // bin.lib value on. As a result, it can be omitted in which case the // function call scope is used (covers project-local lib{} targets). // + // Note that this function is not pure. + // // @@ TODO: support for target (note that if it's out of project, then // it's imported, which means it might still be qualified.) // // @@ TODO: support utility libraries (see link_member()). // - f[".link_member"] = [] (const scope* bs, names ns) + f.insert (".link_member", false) += [] (const scope* bs, names ns) { string t (convert (move (ns))); -- cgit v1.1