aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install/functions.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-12-04 08:39:35 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-12-04 08:39:35 +0200
commit4168cda2363f3d796d0b9922852e249aac3131ba (patch)
tree3e74f8926ad2efe57ac8ffbeb03a8585f285e618 /libbuild2/install/functions.cxx
parent864d84abcf1579b81f54d8d3f79520137d81f629 (diff)
Mark Buildfile functions as pure or impure
Diffstat (limited to 'libbuild2/install/functions.cxx')
-rw-r--r--libbuild2/install/functions.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/libbuild2/install/functions.cxx b/libbuild2/install/functions.cxx
index c780061..5668efe 100644
--- a/libbuild2/install/functions.cxx
+++ b/libbuild2/install/functions.cxx
@@ -18,7 +18,9 @@ namespace build2
// Resolve potentially relative install.* value to an absolute directory
// based on (other) install.* values visible from the calling scope.
//
- f[".resolve"] = [] (const scope* s, dir_path d)
+ // Note that this function is not pure.
+ //
+ f.insert (".resolve", false) += [] (const scope* s, dir_path d)
{
if (s == nullptr)
fail << "install.resolve() called out of scope" << endf;