Skip to content

HookedBuildInfo doesn't support foreign-library #7227

@marknsikora

Description

@marknsikora

Describe the bug
Trying to use a foreign-library field in a buildinfo fails the config step

To Reproduce

Add a buildinfo to a project like

foreign-library: testlib
cc-options: -I/opt/local/include/
$ cabal v2-build ...
...
Unknown field: "foreign-library"

Expected behavior
HookedBuildInfo should support all the targets in a PackageDescription

Additional context
Similar root issue to #2932, reverted fix #3627

Workaround
Put extra flags into a file like testlib.bi and add a hook to manually parse this file and update the PackageDescription

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