www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 4495] New: The -Hd (import file generation directory) option for DMD doesn't work correctly in 2.047.

reply d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4495

           Summary: The -Hd (import file generation directory) option for
                    DMD doesn't work correctly in 2.047.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: jaysistar yahoo.com


--- Comment #0 from jaysistar yahoo.com 2010-07-23 13:08:05 PDT ---
When compiling a library, if more than 1 .d file is specified with directories
in the path of the .d files and the -Hd 
option is used, then DMD 2.047 does not take the directories in the paths in to
account when generating the .di 
files. For example: 

Directory of files: 
file1.d 
dir1/file2.d 
dir2/file3.d 

The DMD command line: 
dmd -lib -oflibfile.a -Hdimport file1.d dir1/file2.d dir2/file3.d 

Expected results: 
libfile.a 
import/file1.di 
import/dir1/file2.di 
import/dir2/file3.di 

Actual results with DMD 2.047: 
libfile.a 
import/file1.di 
import/file2.di 
import/file3.di 

Therefore, the compiler cannot find the correct path to the .di file when
compiling an application using this library because if "import dir2.file2" were
used in the application, the compiler would look for a file in [imports
path]/dir2/file2.di, but it would (correctly) not look for that import as
[imports path]/file2.di, which is where DMD 2.047 outputs it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 23 2010
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=4495


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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |andrej.mitrovich gmail.com
         Resolution|                            |DUPLICATE


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich gmail.com> 2012-11-02
05:59:22 PDT ---
*** This issue has been marked as a duplicate of issue 8808 ***

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