@@ -1032,7 +1032,10 @@ arguments include `standard`, `gmp4`, `nopie`, `tinfo6`, `tinfo6-libc6-pre232`,
10321032Default : ` {}`
10331033
10341034Related command line (takes precedence) :
1035- [`stack build --ghc-options`](build_command.md#ghc-options-option) option
1035+ [`stack build --ghc-options`](build_command.md#-ghc-options-option) option
1036+
1037+ Augment and, if applicable, override any GHC command line options specified in
1038+ Cabal files (including those created from `package.yaml` files).
10361039
10371040` ghc-options` can specify GHC command line options for a named package, all
10381041local packages that are targets (using the `$targets` key), all local packages
@@ -1048,10 +1051,11 @@ ghc-options:
10481051~~~
10491052
10501053GHC's command line options are _order-dependent_ and evaluated from left to
1051- right. Later options can override earlier options. Stack applies options (as
1052- applicable) in the order of `$everything`, `$locals`, `$targets`, and then those
1053- for the named package. Any existing GHC command line options of a package are
1054- applied after those specified in Stack's YAML configuration.
1054+ right. Later options can override the effect of earlier ones. Stack applies
1055+ options (as applicable) in the order of `$everything`, `$locals`, `$targets`,
1056+ and then those for the named package. Any GHC command line options for a package
1057+ specified at Stack's command line are applied after those specified in Stack's
1058+ YAML configuration files.
10551059
10561060Since Stack 1.6.1, setting a GHC options for a specific package will
10571061automatically promote it to a local package (much like setting a custom package
0 commit comments