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/

Reply via email to