From 10cdf9fdcd4181f2ea3dec1abf5bcc359b87829c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 26 Apr 2015 09:58:35 +0200 Subject: Cleanup cxx.link rule --- build/cxx/rule.cxx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/build/cxx/rule.cxx b/build/cxx/rule.cxx index 7f9ea02..2d64701 100644 --- a/build/cxx/rule.cxx +++ b/build/cxx/rule.cxx @@ -775,16 +775,6 @@ namespace build bool so (tt == type::libso); - // Decide which lib{} member to use for this target. - // - bool lso; // Lib-so. - switch (tt) - { - case type::exe: lso = true; break; - case type::liba: lso = false; break; - case type::libso: lso = true; break; - } - if (!execute_prerequisites (a, t, t.mtime ())) return target_state::unchanged; @@ -827,14 +817,10 @@ namespace build { path_target* ppt; - if (obj* o = pt->is_a ()) - ppt = so ? static_cast (o->so) : o->a; - else if ((ppt = pt->is_a ())) + if ((ppt = pt->is_a ())) ; else if ((ppt = pt->is_a ())) ; - else if (lib* l = pt->is_a ()) - ppt = lso ? static_cast (l->so) : l->a; else if ((ppt = pt->is_a ())) ; else if ((ppt = pt->is_a ())) -- cgit v1.1