www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:

           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 users.sf.net
        ReportedBy: afb 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.
DFLAGS="-I% P%/../src/phobos"

May 16 2007
parent d-bugmail puremagic.com writes:

Iain Buclaw <ibuclaw ubuntu.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #1 from Iain Buclaw <ibuclaw ubuntu.com> 2012-03-12 09:13:49 PDT ---
This was fixed a while ago:


Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 12 2012