Skip to content

Commit e534768

Browse files
committed
Fix #6386 Extend documentation of configure-options
1 parent f18a4e6 commit e534768

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

doc/build_command.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,11 @@ part of Stack's [user's guide](GUIDE.md#the-stack-build-command) for information
168168
about how these dependencies get specified.
169169

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

173177
### `--bench` flag
174178

doc/yaml_configuration.md

+9
Original file line numberDiff line numberDiff line change
@@ -807,10 +807,19 @@ configure-options:
807807
- /some/path
808808
$locals:
809809
- --happy-option=--ghc
810+
$targets:
811+
# Only works on platforms where GHC supports linking against shared Haskell
812+
# libraries:
813+
- --enable-executable-dynamic
810814
my-package:
811815
- --another-flag
812816
~~~
813817

818+
On platforms where GHC supports linking against shared Haskell libraries (that
819+
currently excludes Windows), Cabal's `--enable-executable-dynamic` flag (which
820+
implies `--enable-shared`, unless `--disable-shared` is specified) links
821+
dependent Haskell libraries into executables dynamically.
822+
814823
### connection-count
815824

816825
Default: `8`

0 commit comments

Comments
 (0)