@@ -1003,7 +1003,10 @@ arguments include `standard`, `gmp4`, `nopie`, `tinfo6`, `tinfo6-libc6-pre232`,
10031003Default : ` {}`
10041004
10051005Related command line (takes precedence) :
1006- [`stack build --ghc-options`](build_command.md#ghc-options-option) option
1006+ [`stack build --ghc-options`](build_command.md#-ghc-options-option) option
1007+
1008+ Augment and, if applicable, override any GHC command line options specified in
1009+ Cabal files (including those created from `package.yaml` files).
10071010
10081011` ghc-options` can specify GHC command line options for a named package, all
10091012local packages that are targets (using the `$targets` key), all local packages
@@ -1019,10 +1022,11 @@ ghc-options:
10191022~~~
10201023
10211024GHC's command line options are _order-dependent_ and evaluated from left to
1022- right. Later options can override earlier options. Stack applies options (as
1023- applicable) in the order of `$everything`, `$locals`, `$targets`, and then those
1024- for the named package. Any existing GHC command line options of a package are
1025- applied after those specified in Stack's YAML configuration.
1025+ right. Later options can override the effect of earlier ones. Stack applies
1026+ options (as applicable) in the order of `$everything`, `$locals`, `$targets`,
1027+ and then those for the named package. Any GHC command line options for a package
1028+ specified at Stack's command line are applied after those specified in Stack's
1029+ YAML configuration files.
10261030
10271031Since Stack 1.6.1, setting a GHC options for a specific package will
10281032automatically promote it to a local package (much like setting a custom package
0 commit comments