mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 08:42:08 +02:00
nim: add page (#2207)
This commit is contained in:
parent
deece664b1
commit
15f352df24
1 changed files with 24 additions and 0 deletions
24
pages/common/nim.md
Normal file
24
pages/common/nim.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# nim
|
||||
|
||||
> The Nim compiler.
|
||||
> Processes, compiles and links Nim language source files.
|
||||
|
||||
- Compile a source file:
|
||||
|
||||
`nim compile {{file.nim}}`
|
||||
|
||||
- Compile and run a source file:
|
||||
|
||||
`nim compile -r {{file.nim}}`
|
||||
|
||||
- Compile a source file with release optimizations enabled:
|
||||
|
||||
`nim compile -d:release {{file.nim}}`
|
||||
|
||||
- Build a release binary optimized for low file size:
|
||||
|
||||
`nim compile -d:release --opt:size {{file.nim}}`
|
||||
|
||||
- Generate HTML documentation for a module (output will be placed in the current directory):
|
||||
|
||||
`nim doc {{file.nim}}`
|
Loading…
Add table
Reference in a new issue