From e3a6b031d0ee4bd56b2a2296d5faeaff142e3569 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 5 Jun 2017 10:01:24 +0200 Subject: Fix bug in library meta-information protocol implementation --- build2/cc/compile.cxx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'build2') diff --git a/build2/cc/compile.cxx b/build2/cc/compile.cxx index b301709..04113e7 100644 --- a/build2/cc/compile.cxx +++ b/build2/cc/compile.cxx @@ -492,16 +492,18 @@ namespace build2 const target* pt (nullptr); // A dependency on a library is there so that we can get its - // *.export.poptions. This is the "library meta-information - // protocol". See also append_lib_options(). + // *.export.poptions, modules, etc. This is the "library + // meta-information protocol". See also append_lib_options(). // if (p.is_a () || p.is_a () || p.is_a ()) { if (act.operation () == update_id) { - // Handle imported libraries. We know that for such libraries we - // don't need to do match() in order to get options (if any, they - // would be set by search_library()). + // Handle (phase two) imported libraries. We know that for such + // libraries we don't need to do match() in order to get options + // (if any, they would be set by search_library()). + // + // @@ MOD: for now the same applies to modules? // if (p.proj ()) { @@ -517,8 +519,8 @@ namespace build2 if (const lib* l = pt->is_a ()) pt = &link_member (*l, act, lo); } - - continue; + else + continue; } else { -- cgit v1.1