Thread overview
[Issue 7678] New: Add -cflags switch for DMD that allows passing flags to GCC or ${CC}
Mar 10, 2012
Chad Joan
Mar 10, 2012
Chad Joan
Mar 10, 2012
Walter Bright
March 10, 2012
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


--- Comment #0 from Chad Joan <chadjoan@gmail.com> 2012-03-09 23:25:23 PST ---
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: -------
March 10, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7678



--- Comment #1 from Chad Joan <chadjoan@gmail.com> 2012-03-09 23:34:47 PST ---
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: -------
March 10, 2012
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: -------