mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-05 01:55:49 +00:00
Update cheatsheets
This commit is contained in:
18
ocamlopt
Normal file
18
ocamlopt
Normal file
@@ -0,0 +1,18 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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}}`
|
||||
Reference in New Issue
Block a user