Thread overview
[Issue 7610] New: DMD -H switch doesn't output interfaces to package hierarchy
Feb 29, 2012
Rene Zwanenburg
Feb 29, 2012
dawg@dawgfoto.de
Mar 01, 2012
Rene Zwanenburg
May 28, 2012
Justin C Calvarese
February 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7610

           Summary: DMD -H switch doesn't output interfaces to package
                    hierarchy
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: critical
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: renezwanenburg@gmail.com


--- Comment #0 from Rene Zwanenburg <renezwanenburg@gmail.com> 2012-02-29 07:59:18 PST ---
When using DMD to generate interface files for it's input, the generated interfaces are all put directly in the directory specified by -Hd. If the original source files are in a package hierarchy, for example

source/package1/module1.d
source/package2/module2.d

and we output the interfaces to headers/, the output will be
headers/module1.di
headers/module2.di

When adding headers/ to the include path of the compiler and we want to import the modules, we'd first have to recreate the package hierarchy which is less than ideal. It would be better if DMD could output the interfaces to

headers/package1/module1.di
headers/package2/module2.di

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
February 29, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7610


dawg@dawgfoto.de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |dawg@dawgfoto.de
         Resolution|                            |INVALID


--- Comment #1 from dawg@dawgfoto.de 2012-02-29 10:12:41 PST ---
You can use the -op option.
dmd -o- -op -Hdheaders pkg1/mod1.d pkg2/mod2.d

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 01, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7610


Rene Zwanenburg <renezwanenburg@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|nobody@puremagic.com        |renezwanenburg@gmail.com


--- Comment #2 from Rene Zwanenburg <renezwanenburg@gmail.com> 2012-03-01 05:48:50 PST ---
Created an attachment (id=1079)
Improves documentation of -op switch in dcompiler.dd

Created patch for the compiler documentation in dcompiler.dd, the documentation now states the -op switch also keeps file paths for interface and Ddoc files. The -Dd, -Hd, and -od switches now mention the -op switch.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
May 28, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7610


Justin C Calvarese <technocrat7@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |technocrat7@gmail.com


--- Comment #3 from Justin C Calvarese <technocrat7@gmail.com> 2012-05-28 08:46:09 PDT ---
I turned the patch from http://d.puremagic.com/issues/show_bug.cgi?id=7610#c2 into a pull request: https://github.com/D-Programming-Language/d-programming-language.org/pull/127. I don't know if the status should be changed, so I didn't adjust it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
July 02, 2012
http://d.puremagic.com/issues/show_bug.cgi?id=7610



--- Comment #4 from github-bugzilla@puremagic.com 2012-07-01 23:13:50 PDT ---
Commits pushed to master at https://github.com/D-Programming-Language/d-programming-language.org

https://github.com/D-Programming-Language/d-programming-language.org/commit/84b7788b920d024f9d9f1ee61e75062cf33aee63
fix Issue 7610 - DMD -H switch doesn't output interfaces to package hierarchy
changes based on patch from
http://d.puremagic.com/issues/show_bug.cgi?id=7610#c2

https://github.com/D-Programming-Language/d-programming-language.org/commit/04166240bec1f05ed50efc8c70ecfa1eb530b34c
Revert "fix Issue 7610 - DMD -H switch doesn't output interfaces to package
hierarchy
"

This reverts commit 84b7788b920d024f9d9f1ee61e75062cf33aee63.

https://github.com/D-Programming-Language/d-programming-language.org/commit/b4106d0d3f6149d44c0855836c97ed95dd69200f
fix Issue 7610 - DMD -H switch doesn't output interfaces to package hierarchy
changes based on patch from
http://d.puremagic.com/issues/show_bug.cgi?id=7610#c2

https://github.com/D-Programming-Language/d-programming-language.org/commit/be9ca40f7f2aaee2747e581297d0b6710c196251 Merge pull request #127 from OlioEngr/issue-7610

Issue 7610

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