Phenomenon: The following incantation works on macOS with cabal-install 3.6, but not with the version from master:
$ brew install cpp
$ cabal-3.6 install -w ghc-8.8.4 fudgets
With master this gives an error about a rejected option -traditional to the C compiler.
cc1: error: command-line option '-traditional' is valid for the driver but not for C
`gcc-11' failed in phase `C Compiler'. (Exit code: 1)
fugets.cabal contains the following configuration line:
ghc-options: -pgmP cpp-11 -optP -traditional
This option might be propagated to the wrong place.
It should be investigated if this regression was caused by:
Phenomenon: The following incantation works on macOS with
cabal-install3.6, but not with the version frommaster:With
masterthis gives an error about a rejected option-traditionalto the C compiler.fugets.cabalcontains the following configuration line:This option might be propagated to the wrong place.
It should be investigated if this regression was caused by:
(PRs: Rebase #5440: Respect ghc-options and with-gcc when compiling C sources #7874 Update #7874: Add test, fix changelog #7900)