// file : build2/cc/utility.ixx -*- C++ -*- // copyright : Copyright (c) 2014-2017 Code Synthesis Ltd // license : MIT; see accompanying LICENSE file namespace build2 { namespace cc { inline otype compile_type (const target& t) { return t.is_a () ? otype::e : t.is_a () ? otype::a : otype::s; } inline otype link_type (const target& t) { return t.is_a () ? otype::e : t.is_a () ? otype::a : otype::s; } } }