1dune-compute(1) Dune Manual dune-compute(1)
2
3
4
6 dune-compute - Compute internal function.
7
9 dune compute [OPTION]... FUNCTION [INPUT]
10
12 Run a registered memoize function with the given input and print the
13 output.
14
15 This should only be used for debugging dune.
16
18 FUNCTION (required)
19 Compute FUNCTION for a given input.
20
21 INPUT
22 Use INPUT as the input to the function.
23
25 --build-info
26 Show build information.
27
28 -f, --force
29 Force actions associated to aliases to be re-executed even if their
30 dependencies haven't changed.
31
32 --help[=FMT] (default=auto)
33 Show this help in format FMT. The value FMT must be one of `auto',
34 `pager', `groff' or `plain'. With `auto', the format is `pager` or
35 `plain' whenever the TERM env var is `dumb' or undefined.
36
37 --version
38 Show version information.
39
40 -w, --watch
41 Instead of terminating build after completion, wait continuously
42 for file changes.
43
45 These options are common to all commands.
46
47 --always-show-command-line
48 Always show the full command lines of programs executed by dune
49
50 --auto-promote
51 Automatically promote files. This is similar to running dune
52 promote after the build.
53
54 --build-dir=FILE (absent DUNE_BUILD_DIR env)
55 Specified build directory. _build if unspecified
56
57 --config-file=FILE
58 Load this configuration file instead of the default one.
59
60 --debug-backtraces
61 Always print exception backtraces.
62
63 --debug-dependency-path
64 In case of error, print the dependency path from the targets on the
65 command line to the rule that failed.
66
67 --debug-findlib
68 Debug the findlib sub-system.
69
70 --default-target=TARGET (absent=@@default)
71 Set the default target that when none is specified to dune build.
72
73 --dev
74 Same as --profile dev
75
76 --diff-command=VAL
77 Shell command to use to diff files. Use - to disable printing the
78 diff.
79
80 --display=MODE
81 Control the display mode of Dune. See dune-config(5) for more
82 details.
83
84 --ignore-promoted-rules
85 Ignore rules with (mode promote), except ones with (only ...). The
86 variable %{ignoring_promoted_rules} in dune files reflects whether
87 this option was passed or not.
88
89 -j JOBS
90 Run no more than JOBS commands simultaneously.
91
92 --no-buffer
93 Do not buffer the output of commands executed by dune. By default
94 dune buffers the output of subcommands, in order to prevent
95 interleaving when multiple commands are executed in parallel.
96 However, this can be an issue when debugging long running tests.
97 With --no-buffer, commands have direct access to the terminal. Note
98 that as a result their output won't be captured in the log file.
99 You should use this option in conjunction with -j 1, to avoid
100 interleaving. Additionally you should use --verbose as well, to
101 make sure that commands are printed before they are being executed.
102
103 --no-config
104 Do not load the configuration file
105
106 --no-print-directory
107 Suppress "Entering directory" messages
108
109 --only-packages=PACKAGES
110 Ignore stanzas referring to a package that is not in PACKAGES.
111 PACKAGES is a comma-separated list of package names. Note that this
112 has the same effect as deleting the relevant stanzas from jbuild
113 files. It is mostly meant for releases. During development, it is
114 likely that what you want instead is to build a particular
115 <package>.install target.
116
117 -p PACKAGES, --for-release-of-packages=PACKAGES
118 Shorthand for --root . --only-packages PACKAGE
119 --ignore-promoted-rules --no-config --profile release. You must use
120 this option in your <package>.opam files, in order to build only
121 what's necessary when your project contains multiple packages as
122 well as getting reproducible builds.
123
124 --profile=VAL (absent DUNE_PROFILE env)
125 Select the build profile, for instance dev or release. The default
126 is dev.
127
128 --root=DIR
129 Use this directory as workspace root instead of guessing it. Note
130 that this option doesn't change the interpretation of targets given
131 on the command line. It is only intended for scripts.
132
133 --store-orig-source-dir (absent DUNE_STORE_ORIG_SOURCE_DIR env)
134 Store original source location in dune-package metadata
135
136 --trace-file=FILE
137 Output trace data in catapult format (compatible with
138 chrome://tracing)
139
140 --verbose
141 Same as --display verbose
142
143 --workspace=FILE (absent DUNE_WORKSPACE env)
144 Use this specific workspace file instead of looking it up.
145
146 -x VAL
147 Cross-compile using this toolchain.
148
150 Use `dune COMMAND --help' for help on a single command.
151
153 These environment variables affect the execution of compute:
154
155 DUNE_BUILD_DIR
156 Specified build directory. _build if unspecified
157
158 DUNE_PROFILE
159 Build profile. dev if unspecified or release if -p is set.
160
161 DUNE_STORE_ORIG_SOURCE_DIR
162 Store original source location in dune-package metadata
163
164 DUNE_WORKSPACE
165 Use this specific workspace file instead of looking it up.
166
168 Check bug reports at https://github.com/ocaml/dune/issues
169
170
171
172Dune n/a dune-compute(1)