HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

dmd — Official D compiler. More information: <https://dlang.org/dmd-windows.html>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
officialhttpscommandcliinformationcompilerdmdmore

Problem

How to use the dmd command: Official D compiler. More information: <https://dlang.org/dmd-windows.html>.

Solution

dmd — Official D compiler. More information: <https://dlang.org/dmd-windows.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

Code Snippets

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

Context

tldr-pages: common/dmd

Revisions (0)

No revisions yet.