LinuxCommandLibrary

ldc

D compiler using LLVM as a backend.

TLDR

Compile a source code file into an executable binary

$ ldc2 [path/to/source.d] -of=[path/to/output_executable]
copy


Compile the source code file without linking
$ ldc2 -c [path/to/source.d]
copy


Select the target architecture and OS
$ ldc -mtriple=[architecture_OS] -c [path/to/source.d]
copy


Display help
$ ldc2 -h
copy


Display complete help
$ ldc2 -help-hidden
copy

Copied to clipboard