[Issue 4672] New: rdmd fails when -I is needed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Aug 18 01:54:42 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4672

           Summary: rdmd fails when -I is needed
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Phobos
        AssignedTo: nobody at puremagic.com
        ReportedBy: cbkbbejeap at mailinator.com


--- Comment #0 from Nick Sabalausky <cbkbbejeap at mailinator.com> 2010-08-18 01:54:34 PDT ---
As discussed on the newsgroup:
http://www.mail-archive.com/digitalmars-d@puremagic.com/msg35755.html

-----------------------------------------
$ cat src/app/main.d
module app.main;
import foo;
void main(){}

$ cat src/lib/foo.d
module lib.foo;

$ xfbuild -Isrc src/app/main.d
Works ok

$ rdmd -Isrc src/app/main.d
dmd craps out because rdmd told it to compile "src/app/src/lib/foo.d"
-----------------------------------------

A modified version of rdmd is attached which fixes the above AND ensures that
the following still works correctly:

-----------------------------------------
$ cat ../baz/main.d
import a.b;
void main(){}

$ cat ../baz/a/b.d
module a.b;

$ rdmd ../baz/main.d
-----------------------------------------

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


More information about the Digitalmars-d-bugs mailing list