aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/bash
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2019-08-26 07:34:15 +0200
commit8e0e8edb727a5367d991880b033eb13060f4c8eb (patch)
tree75916dbef9b7a0dc6ef0fa939b9f748fc353d5cc /libbuild2/bash
parent113c43a42d20073428d46c04a1aa1cb305ea12d7 (diff)
Make target types project-wide
Diffstat (limited to 'libbuild2/bash')
-rw-r--r--libbuild2/bash/init.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/libbuild2/bash/init.cxx b/libbuild2/bash/init.cxx
index bd0e34b..65d9d0f 100644
--- a/libbuild2/bash/init.cxx
+++ b/libbuild2/bash/init.cxx
@@ -28,7 +28,7 @@ namespace build2
scope& bs,
const location& l,
unique_ptr<module_base>&,
- bool,
+ bool first,
bool,
const variable_map&)
{
@@ -44,7 +44,8 @@ namespace build2
// Register target types and configure default installability.
//
- bs.target_types.insert<bash> ();
+ if (first)
+ rs.insert_target_type<bash> ();
if (install_loaded)
{