diff options
Diffstat (limited to 'libbuild2/bash')
-rw-r--r-- | libbuild2/bash/init.cxx | 5 |
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) { |