Thread overview
[Issue 9898] New: Make -deps switch without arguments print to stdout
Apr 07, 2013
Andrej Mitrovic
Apr 07, 2013
Martin Nowak
Apr 07, 2013
Andrej Mitrovic
Apr 07, 2013
jfanatiker@gmx.at
April 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9898

           Summary: Make -deps switch without arguments print to stdout
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD
        AssignedTo: andrej.mitrovich@gmail.com
        ReportedBy: andrej.mitrovich@gmail.com


--- Comment #0 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-07 07:32:50 PDT ---


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9898


Martin Nowak <code@dawg.eu> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |code@dawg.eu


--- Comment #1 from Martin Nowak <code@dawg.eu> 2013-04-07 10:52:33 PDT ---
What should happen with other stdout output?

NB:
On unix you can use -deps=/dev/stdout.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9898


Andrej Mitrovic <andrej.mitrovich@gmail.com> changed:

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


--- Comment #2 from Andrej Mitrovic <andrej.mitrovich@gmail.com> 2013-04-07 10:54:06 PDT ---
I forgot to close this, I thought RDMD might need it but it's unnecessary since it can just read from the deps file instead.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
April 07, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9898


jfanatiker@gmx.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfanatiker@gmx.at


--- Comment #3 from jfanatiker@gmx.at 2013-04-07 11:01:40 PDT ---
I just implemented this. :-) This very moment.

The idea is to print to stdout everything dependency related, every line gets prefixed just as -v output does. I have currently defined the following lines:

depsImport ... Same information that gets written to -deps=file
depsFile ... File imports
depsVersion ... What version() statements are in the module
depsDebug ... The same for debug()
depsLib ... Any library from pragma(lib)

So -deps=file would only remain for legacy reasons, -deps would be an extensible replacement for everything dependency related.

I almost have a pull request ready.

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