diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-21 10:04:18 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-21 10:04:18 +0200 |
commit | d8f26e8402bbe19820545db90394f657ae42e598 (patch) | |
tree | a1430c3077de2053ef32013c2eef5e50b840a43a /build2/config/utility.txx | |
parent | de15b95d09d00821aa23e96a0c3e827689c27a58 (diff) |
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.txx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build2/config/utility.txx b/build2/config/utility.txx index 5ebd261..4e6747b 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)); |