// file : libbuild2/bin/utility.ixx -*- C++ -*- // license : MIT; see accompanying LICENSE file namespace build2 { namespace bin { inline ltype link_type (const target& t) { bool u (false); otype o ( t.is_a () || (u = t.is_a ()) ? otype::e : t.is_a () || (u = t.is_a ()) ? otype::a : t.is_a () || (u = t.is_a ()) ? otype::s : static_cast (0xFF)); return ltype {o, u}; } } }