aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install/functions.cxx
diff options
context:
space:
mode:
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;