@staticmethod
def _is_debug(name, arch):
    """ Return True if a name implies a debug version. """
    if arch == 'linux':
        return name.endswith('.debug')
    if arch == 'macos':
        return name.endswith('_debug.dylib') or name.endswith('.dSYM')
    if arch == 'win':
        return name.endswith('.pdb') or name.endswith('d.dll')
