mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-01 07:35:24 +02:00
ocamlfind: update path placeholders (#10244)
This commit is contained in:
parent
13550893ba
commit
3dd1053ff9
1 changed files with 3 additions and 3 deletions
|
@ -6,12 +6,12 @@
|
||||||
|
|
||||||
- Compile a source file to a native binary and link with packages:
|
- Compile a source file to a native binary and link with packages:
|
||||||
|
|
||||||
`ocamlfind ocamlopt -package {{package1}},{{package2}} -linkpkg -o {{executable}} {{source_file.ml}}`
|
`ocamlfind ocamlopt -package {{package1}},{{package2}} -linkpkg -o {{path/to/executable}} {{path/to/source.ml}}`
|
||||||
|
|
||||||
- Compile a source file to a bytecode binary and link with packages:
|
- Compile a source file to a bytecode binary and link with packages:
|
||||||
|
|
||||||
`ocamlfind ocamlc -package {{package1}},{{package2}} -linkpkg -o {{executable}} {{source_file.ml}}`
|
`ocamlfind ocamlc -package {{package1}},{{package2}} -linkpkg -o {{path/to/executable}} {{path/to/source.ml}}`
|
||||||
|
|
||||||
- Cross-compile for a different platform:
|
- Cross-compile for a different platform:
|
||||||
|
|
||||||
`ocamlfind -toolchain {{cross-toolchain}} ocamlopt -o {{executable}} {{source_file.ml}}`
|
`ocamlfind -toolchain {{cross-toolchain}} ocamlopt -o {{path/to/executable}} {{path/to/source.ml}}`
|
||||||
|
|
Loading…
Add table
Reference in a new issue