Skip to content

cabal build --enable-build-info doesn't contain options specified via cabal.project files #9927

@fendor

Description

@fendor

Describe the bug

The build-info.json file generated by cabal build --enable-build-info does not include ghc-options specified via cabal.project

To Reproduce
Steps to reproduce the behavior:

$ mkdir cabal-bi-bug && cd cabal-bi-bug
$ cabal init -n --lib
$ echo -e "packages: ./\npackage cabal-bi-bug\n  ghc-options: -haddock\n" > cabal.project
$ cabal build --enable-build-info
$ cat dist-newstyle/build/**/build-info.json | jq | grep haddock

Expected behavior

compiler-args field should contain -haddock

System information

  • Operating system
  • cabal 3.10.3.0

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