www.digitalmars.com         C & C++   DMDScript  

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

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1237

           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:
----
DFLAGS
    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
directories:

   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.
[Environment]
DFLAGS="-I% P%/../src/phobos"


-- 
May 16 2007
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=1237


Iain Buclaw <ibuclaw ubuntu.com> changed:

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



This was fixed a while ago:

https://bitbucket.org/goshawk/gdc/changeset/3acdb17df213

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