@@ -29,8 +29,8 @@ stack build [TARGET] [--dry-run] [--pedantic] [--fast] [--ghc-options OPTIONS]
2929interface for simple tasks and flexibility for more complicated goals.
3030
3131See the introductory part of Stack's
32- [ user's guide] ( GUIDE. md#the-stack-build-command) for an introduction to the
33- command.
32+ [ user's guide] ( ../tutorial/hello_world_example. md#the-stack-build-command) for
33+ an introduction to the command.
3434
3535## Synonyms
3636
@@ -208,15 +208,16 @@ its subdirectories.
208208## Controlling what gets built
209209
210210Stack will automatically build the necessary dependencies. See the introductory
211- part of Stack's [ user's guide] ( GUIDE.md#the-stack-build-command ) for information
212- about how these dependencies get specified.
211+ part of Stack's
212+ [ user's guide] ( ../tutorial/building_your_project.md#adding-dependencies ) for
213+ information about how these dependencies get specified.
213214
214215In addition to specifying targets, you can also control what gets built, or
215216retained, with the flags and options listed below. You can also affect what gets
216217built by specifying Cabal (the library) options for the configure step
217218of the Cabal build process (for further information, see the documentation for
218- the [ configure-options] ( yaml_configuration. md#configure-options) configuration
219- option).
219+ the [ configure-options] ( ../configure/yaml/non-project. md#configure-options)
220+ configuration option).
220221
221222### ` --bench ` flag
222223
@@ -279,7 +280,7 @@ This overrides:
279280!!! note
280281
281282 In order to set a Cabal flag for a GHC boot package, the package must be
282- specified as an [extra-dep](yaml_configuration .md#extra-deps).
283+ specified as an [extra-dep](../configure/yaml/project .md#extra-deps).
283284
284285### ` --[no-]force-dirty ` flag
285286
@@ -644,20 +645,22 @@ The effect of `--fast` can be overriden with Stack's
644645 Cabal's default behaviour). The exception is if Cabal's
645646 `--disable-optimization` flag or `--enable-optimization[=n]`, `-O[n]`
646647 options are used during the configure step of the Cabal build process; see
647- Stack's [`configure-options`](yaml_configuration.md#configure-options) YAML
648- configuration option.
648+ Stack's
649+ [`configure-options`](../configure/yaml/non-project.md#configure-options)
650+ YAML configuration option.
649651
650652### ` --ghc-options ` option
651653
652654GHC command line options can be specified for a package in its Cabal file
653655(including one created from a ` package.yaml ` file). This option augments and, if
654656applicable (see below), overrides any such GHC command line options and those
655657specified in Stack's YAML configuration files - see the
656- [ ` ghc-options ` ] ( yaml_configuration.md#ghc-options ) configuration option.
658+ [ ` ghc-options ` ] ( ../configure/yaml/non-project.md#ghc-options ) configuration
659+ option.
657660
658661` stack build --ghc-options <ghc_options> ` passes the specified command line
659662options to GHC, depending on Stack's
660- [ ` apply-ghc-options ` ] ( yaml_configuration .md#apply-ghc-options) YAML
663+ [ ` apply-ghc-options ` ] ( ../configure/yaml/non-project .md#apply-ghc-options) YAML
661664configuration option. This option can be specified multiple times.
662665
663666GHC's command line options are _ order-dependent_ and evaluated from left to
@@ -757,14 +760,14 @@ to `happy` its `--ghc` flag.
757760By default, all and any ` --PROG-option ` options on Stack's command line are
758761applied to all project packages (targets or otherwise). This behaviour can be
759762changed. See the
760- [ ` apply-prog-options ` ] ( yaml_configuration. md#apply-prog-options) configuration
761- option.
763+ [ ` apply-prog-options ` ] ( ../configure/yaml/non-project. md#apply-prog-options)
764+ configuration option.
762765
763766Stack can also be configured to pass Cabal's ` --PROG-option ` , ` --PROG-options `
764767or other options to Cabal during the configuration step. For further
765768information, see the documentation for the
766- [ configure-options] ( yaml_configuration. md#configure-options) configuration
767- option.
769+ [ configure-options] ( ../configure/yaml/non-project. md#configure-options)
770+ configuration option.
768771
769772## Flags relating to build outputs
770773
@@ -877,9 +880,9 @@ package is targetted in a multi-package project (for example, using
877880 contents of the log files to the standard error output stream of the console
878881 at the end of the build, use Stack's ` dump-logs ` option. For further
879882 information about that option, see the
880- [ YAML configuration] ( yaml_configuration. md#dump-logs) documentation. The
881- default ` dump-logs ` mode is to output the contents of any log files that
882- include GHC warnings.
883+ [ YAML configuration] ( ../configure/yaml/non-project. md#dump-logs)
884+ documentation. The default ` dump-logs ` mode is to output the contents of any
885+ log files that include GHC warnings.
883886
884887### ` --[no]-open ` flag
885888
@@ -932,8 +935,8 @@ All the following examples assume that:
932935 ` stack.yaml ` file in the current directory or ancestor directory and,
933936 consequently, the project-level configuration will be determined by a
934937 ` stack.yaml ` file in the ` global-project ` directory in the
935- [ Stack root] ( stack_root.md ) (for further information, see the
936- [ YAML configuration] ( yaml_configuration.md ) documentation); and
938+ [ Stack root] ( ../topics/ stack_root.md) (for further information, see the
939+ [ YAML configuration] ( ../configure/ yaml_configuration.md) documentation); and
937940
938941* if ` stack build ` is commanded in a project directory, there is a
939942 ` stack.yaml ` file in that directory.
0 commit comments