Skip to content

Null host shouldn't exist when a Custom host is present #1366

Description

@Marco-Farruggio

Correct me if I'm wrong, but the whole idea of the Null host is that it should only exist if there are no other hosts for that compilation, so that each enum/type etc has atleast 1 member, the NullHost, however, the Null host can currently compile in, even if the Custom host is used, on a compilation target which cpal doesnt have a backend for, this seems counter-intuitive to me, and infact, in my mind, compiling for a target without any of cpals backends and then using a custom host to implement it themselves, seem to go hand in hand, this also could be quite an easy fix (I believe). Also, this means that it will always set the default host to Null, instead of Custom

This seems like a logical error to me, and a quick PR I can whip up.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions