www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 7610] New: DMD -H switch doesn't output interfaces to package hierarchy

reply d-bugmail puremagic.com writes:
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



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: -------
Feb 29 2012
next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Feb 29 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
Mar 01 2012
prev sibling next sibling parent d-bugmail puremagic.com writes:
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



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: -------
May 28 2012
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=7610




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


Issue 7610

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