@@ -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
@@ -206,15 +206,16 @@ its subdirectories.
206206## Controlling what gets built
207207
208208Stack will automatically build the necessary dependencies. See the introductory
209- part of Stack's [ user's guide] ( GUIDE.md#the-stack-build-command ) for information
210- about how these dependencies get specified.
209+ part of Stack's
210+ [ user's guide] ( ../tutorial/building_your_project.md#adding-dependencies ) for
211+ information about how these dependencies get specified.
211212
212213In addition to specifying targets, you can also control what gets built, or
213214retained, with the flags and options listed below. You can also affect what gets
214215built by specifying Cabal (the library) options for the configure step
215216of the Cabal build process (for further information, see the documentation for
216- the [ configure-options] ( yaml_configuration. md#configure-options) configuration
217- option).
217+ the [ configure-options] ( ../configure/yaml/non-project. md#configure-options)
218+ configuration option).
218219
219220### ` --[no-]allow-newer ` flag
220221
@@ -298,7 +299,7 @@ This overrides:
298299!!! note
299300
300301 In order to set a Cabal flag for a GHC boot package, the package must be
301- specified as an [extra-dep](yaml_configuration .md#extra-deps).
302+ specified as an [extra-dep](../configure/yaml/project .md#extra-deps).
302303
303304### ` --[no-]force-dirty ` flag
304305
@@ -736,20 +737,22 @@ The effect of `--fast` can be overriden with Stack's
736737 Cabal's default behaviour). The exception is if Cabal's
737738 `--disable-optimization` flag or `--enable-optimization[=n]`, `-O[n]`
738739 options are used during the configure step of the Cabal build process; see
739- Stack's [`configure-options`](yaml_configuration.md#configure-options) YAML
740- configuration option.
740+ Stack's
741+ [`configure-options`](../configure/yaml/non-project.md#configure-options)
742+ YAML configuration option.
741743
742744### ` --ghc-options ` option
743745
744746GHC command line options can be specified for a package in its Cabal file
745747(including one created from a ` package.yaml ` file). This option augments and, if
746748applicable (see below), overrides any such GHC command line options and those
747749specified in Stack's YAML configuration files - see the
748- [ ` ghc-options ` ] ( yaml_configuration.md#ghc-options ) configuration option.
750+ [ ` ghc-options ` ] ( ../configure/yaml/non-project.md#ghc-options ) configuration
751+ option.
749752
750753` stack build --ghc-options <ghc_options> ` passes the specified command line
751754options to GHC, depending on Stack's
752- [ ` apply-ghc-options ` ] ( yaml_configuration .md#apply-ghc-options) YAML
755+ [ ` apply-ghc-options ` ] ( ../configure/yaml/non-project .md#apply-ghc-options) YAML
753756configuration option. This option can be specified multiple times.
754757
755758GHC's command line options are _ order-dependent_ and evaluated from left to
@@ -849,14 +852,14 @@ to `happy` its `--ghc` flag.
849852By default, all and any ` --PROG-option ` options on Stack's command line are
850853applied to all project packages (targets or otherwise). This behaviour can be
851854changed. See the
852- [ ` apply-prog-options ` ] ( yaml_configuration. md#apply-prog-options) configuration
853- option.
855+ [ ` apply-prog-options ` ] ( ../configure/yaml/non-project. md#apply-prog-options)
856+ configuration option.
854857
855858Stack can also be configured to pass Cabal's ` --PROG-option ` , ` --PROG-options `
856859or other options to Cabal during the configuration step. For further
857860information, see the documentation for the
858- [ configure-options] ( yaml_configuration. md#configure-options) configuration
859- option.
861+ [ configure-options] ( ../configure/yaml/non-project. md#configure-options)
862+ configuration option.
860863
861864## Flags relating to build outputs
862865
@@ -969,9 +972,9 @@ package is targetted in a multi-package project (for example, using
969972 contents of the log files to the standard error output stream of the console
970973 at the end of the build, use Stack's ` dump-logs ` option. For further
971974 information about that option, see the
972- [ YAML configuration] ( yaml_configuration. md#dump-logs) documentation. The
973- default ` dump-logs ` mode is to output the contents of any log files that
974- include GHC warnings.
975+ [ YAML configuration] ( ../configure/yaml/non-project. md#dump-logs)
976+ documentation. The default ` dump-logs ` mode is to output the contents of any
977+ log files that include GHC warnings.
975978
976979### ` --[no]-open ` flag
977980
@@ -1024,8 +1027,8 @@ All the following examples assume that:
10241027 ` stack.yaml ` file in the current directory or ancestor directory and,
10251028 consequently, the project-level configuration will be determined by a
10261029 ` stack.yaml ` file in the ` global-project ` directory in the
1027- [ Stack root] ( stack_root.md ) (for further information, see the
1028- [ YAML configuration] ( yaml_configuration.md ) documentation); and
1030+ [ Stack root] ( ../topics/ stack_root.md) (for further information, see the
1031+ [ YAML configuration] ( ../configure/ yaml_configuration.md) documentation); and
10291032
10301033* if ` stack build ` is commanded in a project directory, there is a
10311034 ` stack.yaml ` file in that directory.
0 commit comments