mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
30 lines
482 B
Plaintext
30 lines
482 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# dmd
|
|
|
|
> Official D compiler.
|
|
> More information: <https://dlang.org/dmd.html>.
|
|
|
|
- Build a D source file:
|
|
|
|
`dmd {{path/to/source.d}}`
|
|
|
|
- Generate code for all template instantiations:
|
|
|
|
`dmd -allinst`
|
|
|
|
- Control bounds checking:
|
|
|
|
`dmd -boundscheck={{on|safeonly|off}}`
|
|
|
|
- List information on all available checks:
|
|
|
|
`dmd -check={{h|help|?}}`
|
|
|
|
- Turn on colored console output:
|
|
|
|
`dmd -color`
|