diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-04 08:39:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-12-04 08:39:35 +0200 |
commit | 4168cda2363f3d796d0b9922852e249aac3131ba (patch) | |
tree | 3e74f8926ad2efe57ac8ffbeb03a8585f285e618 /libbuild2/bin/functions.cxx | |
parent | 864d84abcf1579b81f54d8d3f79520137d81f629 (diff) |
Mark Buildfile functions as pure or impure
Diffstat (limited to 'libbuild2/bin/functions.cxx')
-rw-r--r-- | libbuild2/bin/functions.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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<string> (move (ns))); |