From d8f26e8402bbe19820545db90394f657ae42e598 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 21 Jul 2016 10:04:18 +0200 Subject: 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. --- build2/config/utility.txx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build2/config/utility.txx') 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 pair, 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 org (root.find_original (var)); -- cgit v1.1