Output of dmd and dmd.conf location

Walter Bright newshound1 at digitalmars.com
Wed Mar 24 14:42:49 PDT 2010


Andrei Alexandrescu wrote:
> I never know the full logic by which dmd.conf is found, it's quite convoluted.

 From dmd compiler source inifile.c:

         /* Look for inifile in the following sequence of places:
          *      o current directory
          *      o home directory
          *      o directory off of argv0
          *      o /etc/
          */

argv0 is where the dmd binary is.

 From the documentation http://www.digitalmars.com/d/2.0/dmd-linux.html#dmd_conf

1.current working directory
2.directory specified by the HOME environment variable
3.directory dmd resides in
4./etc/



More information about the Digitalmars-d mailing list