2025-03-14 21:59:59 -06:00
|
|
|
# dmd
|
|
|
|
|
|
|
|
|
|
> Official D compiler.
|
2026-02-18 06:55:01 -07:00
|
|
|
> More information: <https://dlang.org/dmd-windows.html>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- 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`
|