On 03/24/2010 04:42 PM, Walter Bright wrote:
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/
I know. What I meant to say is that I need to go look it up whenever I
need to figure something out. It would be much simpler to just issue dmd
-v and see the thing at work in my environment.
Andrei