@@ -1003,7 +1003,10 @@ arguments include `standard`, `gmp4`, `nopie`, `tinfo6`, `tinfo6-libc6-pre232`,
1003
1003
Default : ` {}`
1004
1004
1005
1005
Related 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).
1007
1010
1008
1011
` ghc-options` can specify GHC command line options for a named package, all
1009
1012
local packages that are targets (using the `$targets` key), all local packages
@@ -1019,10 +1022,11 @@ ghc-options:
1019
1022
~~~
1020
1023
1021
1024
GHC'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.
1026
1030
1027
1031
Since Stack 1.6.1, setting a GHC options for a specific package will
1028
1032
automatically promote it to a local package (much like setting a custom package
0 commit comments