ocaml*: add ocamlopt and ocamlfind and extend ocamlc (#4436)

This commit is contained in:
Daniil Baturin
2020-10-05 21:19:55 +07:00
committed by GitHub
parent ab043776f0
commit f6e080573a
4 changed files with 36 additions and 0 deletions

13
pages/common/ocamlopt.md Normal file
View File

@@ -0,0 +1,13 @@
# ocamlopt
> The OCaml native code compiler.
> Produces native executables, e.g. ELF on Linux.
> More information: <https://ocaml.org>.
- Compile a source file:
`ocamlopt -o {{path/to/binary}} {{path/to/source_file.ml}}`
- Compile with debugging enabled:
`ocamlopt -g -o {{path/to/binary}} {{path/to/source_file.ml}}`