Skip to content

Commit c09d4e9

Browse files
committed
Re commercialhaskell#6478 Clarify relationship with Cabal ghc-options
1 parent c130d13 commit c09d4e9

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

Diff for: doc/build_command.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -492,9 +492,11 @@ The effect of `--fast` can be overriden with Stack's
492492

493493
### `--ghc-options` option
494494

495-
Augment and, if applicable, override any GHC command line options specified in
496-
Cabal files (including those created from `package.yaml` files) or in Stack's
497-
YAML configuration files.
495+
GHC command line options can be specified for a package in its Cabal file
496+
(including one created from a `package.yaml` file). This option augments and, if
497+
applicable (see below), overrides any such GHC command line options and those
498+
specified in Stack's YAML configuration files - see the
499+
[`ghc-options`](yaml_configuration.md#ghc-options) configuration option.
498500

499501
`stack build --ghc-options <ghc_options>` passes the specified command line
500502
options to GHC, depending on Stack's

Diff for: doc/yaml_configuration.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1034,8 +1034,8 @@ Default: `{}`
10341034
Related command line (takes precedence):
10351035
[`stack build --ghc-options`](build_command.md#-ghc-options-option) option
10361036

1037-
Augment and, if applicable, override any GHC command line options specified in
1038-
Cabal files (including those created from `package.yaml` files).
1037+
GHC command line options can be specified for a package in its Cabal file
1038+
(including one created from a `package.yaml` file). This option augments and, if applicable (see below), overrides any such GHC command line options.
10391039

10401040
`ghc-options` can specify GHC command line options for a named package, all
10411041
local packages that are targets (using the `$targets` key), all local packages

0 commit comments

Comments
 (0)