Skip to content

Feature request: Allow conditional targets #2650

@osa1

Description

@osa1

I'm wondering if there's a problem with this idea. I'd like to enable some executables/tests only when --ghcjs is used, for example. But currently this is not allowed:

if impl(ghcjs)
  executable ...
    build-depends: ...

How hard would it be to implement this? Are there any problems with this idea?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions