import platform


def get_link_arg(plat_name='') -> str:
    """Get the /MACHINE specifier for MSVC"""
    if not plat_name and platform.architecture()[0] == '64bit':
        plat_name = 'amd64'

    if 'amd64' in plat_name:
        return '/MACHINE:X64'
    else:
        return '/MACHINE:X86'