ldc Command Examples

D compiler using LLVM as a backend. More information: https://wiki.dlang.org/Using_LDC.

ldc2 {{path/to/source.d}} -of={{path/to/output_executable}}

ldc2 -c {{path/to/source.d}}

ldc -mtriple={{architecture_OS}} -c {{path/to/source.d}}

ldc2 -h

ldc2 -help-hidden