Using LDC
Revision as of 21:34, 16 December 2012 by Klickverbot (talk | contribs) (Initial draft – needs work!)
Generally, LDC should be straightforward to use, like any other compiler. It comes with two different »drivers«, i.e. executables a user invokes to compile D code: ldc2, which offers many customization options, some of which are internal to LLVM, and ldmd2, which tries to accurately replicate the DMD command line interface and can be used as a drop-in replacement for DMD.
Configuration file search path
LDC looks for a file called ldc.conf resp. ldc2.conf in the follow directories in order:
- current working directory
- next to binary
- ~/.ldc
- user home directory (Windows-only)
- in an etc directory next to the directory where the binary resides
- install-prefix (Windows-only)
- install-prefix/etc
- install-prefix/etc/ldc
- /etc
- /etc/ldc