From 41cad5bba8a718a0403c0578660c60e81c9f46e4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 27 Jun 2016 16:59:09 +0200 Subject: Add config.bin.target var/hint, use to decide libso{} install mode Normally the user doesn't need to specify config.bin.target explicitly since the cxx module will hint it. We now also have the whole set of target's components: bin.target.{cpu,vendor,system,version,class} --- build2/file.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build2/file.cxx') diff --git a/build2/file.cxx b/build2/file.cxx index 8b6291a..3195af7 100644 --- a/build2/file.cxx +++ b/build2/file.cxx @@ -471,7 +471,7 @@ namespace build2 // amalgamated. // { - auto rp (root.vars.assign ("amalgamation")); // Set NULL by default. + auto rp (root.vars.insert ("amalgamation")); // Set NULL by default. value& v (rp.first); if (v && v.empty ()) // Convert empty to NULL. @@ -543,7 +543,7 @@ namespace build2 // { const variable& var (var_pool.find ("subprojects")); - auto rp (root.vars.assign(var)); // Set NULL by default. + auto rp (root.vars.insert (var)); // Set NULL by default. value& v (rp.first); if (rp.second) -- cgit v1.1