[Issue 1237] New: gdmd should use dmd.conf and $DFLAGS

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 16 04:26:40 PDT 2007


           Summary: gdmd should use dmd.conf and $DFLAGS
           Product: DGCC aka GDC
           Version: 0.24
          Platform: All
        OS/Version: Mac OS X
            Status: NEW
          Severity: major
          Priority: P2
         Component: glue layer
        AssignedTo: dvdfrdmn at users.sf.net
        ReportedBy: afb at algonet.se

It would be much easier to do global overrides, such as the ones needed for
using Tango (-version=Posix -version=Tango), if the dmd-script wrapper
supported the dmd.conf configuration file and the $DFLAGS environment
variable... Earlier the compiler .spec was used for this purpose, but that
doesn't seem to work anymore.

The DMD documentation says:
    The value of DFLAGS is treated as if it were appended to the command line
to dmd 

dmd.conf Initialization File

dmd will look for the initialization file dmd.conf in the following sequence of

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

If found, environment variable settings in the file will override any existing
settings. This is handy to make dmd independent of programs with conflicting
use of environment variables.

Environment variables follow the [Environment] section heading, in NAME=value
pairs. The NAMEs are treated as upper case. Comments are lines that start with
;. For example:

; dmd.conf file for dmd
; Names enclosed by %% are searched for in the existing environment
; and inserted. The special name %@P% is replaced with the path
; to this file.


More information about the D.gnu mailing list