Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed Dec 23, 2023
2 parents da2107d + e534768 commit 0c52267
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 @@ -830,10 +830,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 0c52267

Please sign in to comment.