summaryrefslogtreecommitdiffstats
path: root/build2/config/utility.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-21 10:04:18 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-21 10:04:18 +0200
commitd8f26e8402bbe19820545db90394f657ae42e598 (patch)
treea1430c3077de2053ef32013c2eef5e50b840a43a /build2/config/utility.txx
parentde15b95d09d00821aa23e96a0c3e827689c27a58 (diff)
downloadbuild2-d8f26e8402bbe19820545db90394f657ae42e598.tar.gz
build2-d8f26e8402bbe19820545db90394f657ae42e598.tar.xz
build2-d8f26e8402bbe19820545db90394f657ae42e598.zip
Save default/hinted ar/ld/rc values as commented out
This way, when we, for example, change the C++ compiler (which hinted these values), they will be automatically adjusted as well.
Diffstat (limited to 'build2/config/utility.txx')
-rw-r--r--build2/config/utility.txx8
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/config/utility.txx b/build2/config/utility.txx
index 5ebd2615..4e6747b4 100644
--- a/build2/config/utility.txx
+++ b/build2/config/utility.txx
@@ -11,13 +11,17 @@ namespace build2
{
template <typename T>
pair<reference_wrapper<const value>, bool>
- required (scope& root, const variable& var, const T& def_val, bool def_ovr)
+ required (scope& root,
+ const variable& var,
+ const T& def_val,
+ bool def_ovr,
+ uint64_t save_flags)
{
// Note: see also the other required() version if changing anything
// here.
if (current_mif->id == configure_id)
- save_variable (root, var);
+ save_variable (root, var, save_flags);
pair<lookup, size_t> org (root.find_original (var));