diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-27 16:59:09 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-06-27 16:59:09 +0200 |
commit | 41cad5bba8a718a0403c0578660c60e81c9f46e4 (patch) | |
tree | 7eebba42dac307fdfcf600f5f6527afe0c0f4fea /build2/install | |
parent | 34cc74df52ed129bffeb7b6fcf11f05c222550ba (diff) |
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}
Diffstat (limited to 'build2/install')
-rw-r--r-- | build2/install/utility | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/build2/install/utility b/build2/install/utility index 1abed27..a50ab9b 100644 --- a/build2/install/utility +++ b/build2/install/utility @@ -19,7 +19,7 @@ namespace build2 inline void install_path (const target_type& tt, scope& s, dir_path d) { - auto r (s.target_vars[tt]["*"].assign ("install")); + auto r (s.target_vars[tt]["*"].insert ("install")); if (r.second) // Already set by the user? r.first.get () = move (d); } @@ -34,7 +34,7 @@ namespace build2 inline void install_mode (const target_type& tt, scope& s, string m) { - auto r (s.target_vars[tt]["*"].assign ("install.mode")); + auto r (s.target_vars[tt]["*"].insert ("install.mode")); if (r.second) // Already set by the user? r.first.get () = move (m); } |