0
on success.
Js_of_ocaml linker
js_of_ocaml link
[OPTION]
…
[JS_FILES]
…
js_of_ocaml-link is a JavaScript linker. It can concatenate multiple JavaScript files keeping sourcemap information.
Link JavaScript files [JS_FILES].
-a
Build a library (.cma.js file) with the js files (.cmo.js files) given on the command line. Similar to ocamlc -a.
--custom-header=VAL
Provide a custom header for the generated JavaScript file, useful for making the script an executable file with #!/usr/bin/env node
--debug=SECTION
enable debug [SECTION].
--debuginfo, --debug-info
Output debug information.
--disable=OPT
Disable optimization [OPT].
--enable=OPT
Enable optimization [OPT].
--linkall
Link all compilation units.
--no-sourcemap, --no-source-map
Don't generate source map. All other source map related flags will be ignored.
--noinline, --no-inline
Disable inlining.
-o FILE
Set output file name to [FILE].
--pretty
Pretty print the output.
-q, --quiet
suppress non-error messages.
--resolve-sourcemap-url=VAL (absent=false)Resolve source map url.
--source-map-inline
Inline sourcemap in the generated JavaScript.
--source-map-root=VAL
root dir for source map.
--sourcemap, --source-map
Generate source map.
--toplevel
Compile a toplevel.
--Werror
turn all warnings into errors.
--help[=FMT] (default=auto)Show this help in format FMT. The value FMT must be one of auto, pager, groff or plain. With auto, the format is pager or plain whenever the TERM env var is dumb or undefined.
--version
Show version information.
js_of_ocaml link exits with:
0
on success.
123
on indiscriminate errors reported on standard error.
124
on command line parsing errors.
125
on unexpected internal errors (bugs).
3 releases since Debian 11 (Bullseye); the text changed 2 times.
--Werror since Debian 13 (Trixie);
--custom-header since Debian 13 (Trixie);
--debug since Debian 13 (Trixie);
--debug-info since Debian 13 (Trixie);
--debuginfo since Debian 13 (Trixie);
--disable since Debian 13 (Trixie);
--enable since Debian 13 (Trixie);
--linkall since Debian 13 (Trixie);
--no-inline since Debian 13 (Trixie);
--no-source-map since Debian 13 (Trixie);
--no-sourcemap since Debian 13 (Trixie);
--noinline since Debian 13 (Trixie);
--pretty since Debian 13 (Trixie);
--quiet since Debian 13 (Trixie);
--toplevel since Debian 13 (Trixie);
-a since Debian 13 (Trixie);
-q since Debian 13 (Trixie).