From f36d3e02033ff2f9d14cb20a6d338c8bb09a3962 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 1 Jun 2017 15:18:08 +0200 Subject: Implement module interface unit compilation for Clang and VC --- build2/cc/link.cxx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'build2/cc/link.cxx') diff --git a/build2/cc/link.cxx b/build2/cc/link.cxx index 0d2a14f..9bbe677 100644 --- a/build2/cc/link.cxx +++ b/build2/cc/link.cxx @@ -314,21 +314,7 @@ namespace build2 // auto add_adhoc = [act, &bs] (target& t, const char* type) -> target_lock { - const target_type& tt (*bs.find_target_type (type)); - - const target& m (t.member != nullptr // Might already be there. - ? *t.member - : search (t, tt, t.dir, t.out, t.name)); - - target_lock l (lock (act, m)); - assert (l.target != nullptr); // Someone messing with adhoc members? - - if (t.member == nullptr) - t.member = l.target; - else - assert (t.member->type () == tt); - - return l; + return add_adhoc_member (act, t, *bs.find_target_type (type)); }; { -- cgit v1.1