Bug 9898 – Make -deps switch without arguments print to stdout

Status
RESOLVED
Resolution
WONTFIX
Severity
enhancement
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-04-07T07:32:00Z
Last change time
2013-04-07T11:01:40Z
Assigned to
andrej.mitrovich
Creator
andrej.mitrovich

Comments

Comment #0 by andrej.mitrovich — 2013-04-07T07:32:50Z
Comment #1 by code — 2013-04-07T10:52:33Z
What should happen with other stdout output? NB: On unix you can use -deps=/dev/stdout.
Comment #2 by andrej.mitrovich — 2013-04-07T10:54:06Z
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.
Comment #3 by jfanatiker — 2013-04-07T11:01:40Z
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.