def bootstrap(context, force=False, specific=None):
    'Dispatches to the right bootstrapping function for the OS.'
    bootstrapper = None
    if ('windows-msvc' in host_triple()):
        bootstrapper = windows_msvc
    elif ('linux-gnu' in host_triple()):
        (distrib, version) = get_linux_distribution()
        if (distrib.lower() == 'nixos'):
            print('NixOS does not need bootstrap, it will automatically enter a nix-shell')
            print('Just run ./mach build')
            print('')
            print('You will need to run a nix-shell if you are trying to run any of the built binaries')
            print('To enter the nix-shell manually use:')
            print('  $ nix-shell etc/shell.nix')
            return
        context.distro = distrib
        context.distro_version = version
        bootstrapper = LINUX_SPECIFIC_BOOTSTRAPPERS.get(specific, linux)
    if (bootstrapper is None):
        print('Bootstrap support is not yet available for your OS.')
        return 1
    return bootstrapper(context, force=force)
Dispatches to the right bootstrapping function for the OS.
def bootstrap(context, force=False, specific=None):
    
    bootstrapper = None
    if ('windows-msvc' in host_triple()):
        bootstrapper = windows_msvc
    elif ('linux-gnu' in host_triple()):
        (distrib, version) = get_linux_distribution()
        if (distrib.lower() == 'nixos'):
            print('NixOS does not need bootstrap, it will automatically enter a nix-shell')
            print('Just run ./mach build')
            print()
            print('You will need to run a nix-shell if you are trying to run any of the built binaries')
            print('To enter the nix-shell manually use:')
            print('  $ nix-shell etc/shell.nix')
            return
        context.distro = distrib
        context.distro_version = version
        bootstrapper = LINUX_SPECIFIC_BOOTSTRAPPERS.get(specific, linux)
    if (bootstrapper is None):
        print('Bootstrap support is not yet available for your OS.')
        return 1
    return bootstrapper(context, force=force)