From 151b9cf30d11a014503b0a060a6bb7875c509adf Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Aug 2023 14:16:56 +0200 Subject: Consider *_inc{} target types as headers for rule match purposes --- libbuild2/cc/module.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libbuild2/cc/module.cxx') diff --git a/libbuild2/cc/module.cxx b/libbuild2/cc/module.cxx index f33ddf4..3e756c4 100644 --- a/libbuild2/cc/module.cxx +++ b/libbuild2/cc/module.cxx @@ -994,14 +994,14 @@ namespace build2 install_path (rs, tt, dir_path ("include")); }; - // Note: module (x_mod) is in x_hdr. + // Note: module (x_mod) is in x_hdrs. // - for (const target_type* const* ht (x_hdr); *ht != nullptr; ++ht) + for (const target_type* const* ht (x_hdrs); *ht != nullptr; ++ht) insert_hdr (**ht); // Also register the C header for C-derived languages. // - if (*x_hdr != &h::static_type) + if (*x_hdrs != &h::static_type) insert_hdr (h::static_type); rs.insert_target_type (); -- cgit v1.1