'Returns the MACH_O_TYPE of this target.'

def GetMachOType(self):

    if ((not self._IsBundle()) and (self.spec['type'] == 'executable')):
        return ''
    return {'executable': 'mh_execute', 'static_library': 'staticlib', 'shared_library': 'mh_dylib', 'loadable_module': 'mh_bundle'}[self.spec['type']]
