aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in/init.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-02 07:08:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-02 07:08:17 +0200
commitce69ad7c2aaf517ec3f789300bf1ae29d8f0dc5d (patch)
treeb406ee722e83bbbb3d4e7a7509d03ca5e0dc7b2e /libbuild2/in/init.cxx
parent8f34de5c103e9e4d2c27583020f2975907b626ad (diff)
Rename in.substitution variable to in.mode
The original name is still recognized for backwards compatibility.
Diffstat (limited to 'libbuild2/in/init.cxx')
-rw-r--r--libbuild2/in/init.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/libbuild2/in/init.cxx b/libbuild2/in/init.cxx
index 18071f8..6743e31 100644
--- a/libbuild2/in/init.cxx
+++ b/libbuild2/in/init.cxx
@@ -58,7 +58,11 @@ namespace build2
// is still stricter than the autoconf's semantics which also leaves
// unknown substitutions as is.
//
- vp.insert<string> ("in.substitution");
+ const variable& im (vp.insert<string> ("in.mode"));
+
+ // Original name of this variable for backwards compatibility.
+ //
+ vp.insert_alias (im, "in.substitution");
// Fallback value to use for NULL value substitutions. If unspecified,
// NULL substitutions are an error.