@@ -1032,7 +1032,10 @@ arguments include `standard`, `gmp4`, `nopie`, `tinfo6`, `tinfo6-libc6-pre232`,
1032
1032
Default : ` {}`
1033
1033
1034
1034
Related 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).
1036
1039
1037
1040
` ghc-options` can specify GHC command line options for a named package, all
1038
1041
local packages that are targets (using the `$targets` key), all local packages
@@ -1048,10 +1051,11 @@ ghc-options:
1048
1051
~~~
1049
1052
1050
1053
GHC'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.
1055
1059
1056
1060
Since Stack 1.6.1, setting a GHC options for a specific package will
1057
1061
automatically promote it to a local package (much like setting a custom package
0 commit comments