ghc-options (and maybe other things) passed in the wrong order in a program-options section
Open
re: ghc-options
re: project-file
type: bug
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
related to #8900
I noticed this with the following on 9.6.3 and cabal 3.10.1.0, but same behavior with `ghc-8.10.7` and `cabal-3.6.2.0` (at least it isn't new I guess):
```
program-options
ghc-options: -Wall
ghc-options: -Werror
-- we'd expect this to override above. It does not; we need to swap the lines:
ghc-options: -Wwarn
```
The actual context was attempting to use `-fno-info-table-map-with-fallback` + `-fno-info-table-map-with-stack`
I was curious if `cpp-options` were similarly passed out of order, but that's not a supported field. Actually I guess this whole section is basically undocumented still…
Contributor guide
Assessment
This issue has not been assessed yet.