www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7678] New: Add -cflags switch for DMD that allows passing flags to GCC or ${CC}

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

           Summary: Add -cflags switch for DMD that allows passing flags
                    to GCC or ${CC}
           Product: D
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: chadjoan gmail.com



On Linux and a few other hosts, DMD uses gcc (or whatever is defined in the CC
environment variable) to do its linking.  Currently there seems to be no way to
pass flags into this C compiler.  

This becomes a problem when you NEED to change the flags passed into that
compiler.  The -Llinkerflag, unfortunately, doesn't help here.  An example of
this is issue 5278 (http://d.puremagic.com/issues/show_bug.cgi?id=5278). 
Without this patch, I would need to go through a lot of hoops just to upgrade
my compiler every time.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 09 2012
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7678




Pull request:
https://github.com/D-Programming-Language/dmd/pull/794

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 09 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7678


Walter Bright <bugzilla digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bugzilla digitalmars.com
           Severity|normal                      |enhancement


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