Skip to content

Commit

Permalink
Fix #6386 Extend documentation of configure-options
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Dec 23, 2023
1 parent f18a4e6 commit e534768
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
6 changes: 5 additions & 1 deletion doc/build_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ part of Stack's [user's guide](GUIDE.md#the-stack-build-command) for information
about how these dependencies get specified.

In addition to specifying targets, you can also control what gets built, or
retained, with the following flags:
retained, with the flags and options listed below. You can also affect what gets
built by specifying Cabal (the library) options for the configure step
of the Cabal build process (for further information, see the documentation for
the [configure-options](yaml_configuration.md#configure-options) configuration
option).

### `--bench` flag

Expand Down
9 changes: 9 additions & 0 deletions doc/yaml_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -807,10 +807,19 @@ configure-options:
- /some/path
$locals:
- --happy-option=--ghc
$targets:
# Only works on platforms where GHC supports linking against shared Haskell
# libraries:
- --enable-executable-dynamic
my-package:
- --another-flag
~~~

On platforms where GHC supports linking against shared Haskell libraries (that
currently excludes Windows), Cabal's `--enable-executable-dynamic` flag (which
implies `--enable-shared`, unless `--disable-shared` is specified) links
dependent Haskell libraries into executables dynamically.

### connection-count

Default: `8`
Expand Down

0 comments on commit e534768

Please sign in to comment.