www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3143] New: -deps produces empty file using D1

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

           Summary: -deps produces empty file using D1
           Product: D
           Version: 1.046
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: ddparnell bigpond.com


Given the three files below and compiling with the DMD command line ...

  dmd test.d mod1.d mod2.d -o- -deps=test.deps

when using DMD V1, the test.deps file is created but is empty.

when using DMD V2, the test.deps file is created and contains the expected
data.

----------------
// main.d
import std.stdio;
import mod1: foo;
void main() {
    writefln("%d\n", foo(10));
}

----------------
// mod1.d
import mod2: bar;
int foo(int x) { return bar(x) + bar(x); }

----------------
// mod2.d
int bar(int x) { return x * x; }
----------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 06 2009
next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3143


Tomasz Stachowiak <h3r3tic mat.uni.torun.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |h3r3tic mat.uni.torun.pl




--- Comment #1 from Tomasz Stachowiak <h3r3tic mat.uni.torun.pl>  2009-07-07
02:50:53 PDT ---
Looks like the changes in import.c have only been applied to the D2 branch. If
you copy import.c from DMD2 into DMD1 and build it, dep generation works fine.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Jul 07 2009
prev sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3143


Hoenir <mrmocool gmx.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mrmocool gmx.de
         Resolution|                            |FIXED


--- Comment #2 from Hoenir <mrmocool gmx.de> 2010-02-04 16:44:30 PST ---
This has already been fixed in some release.

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