www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 3062] New: -run compiler switch ignores -I option

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

           Summary: -run compiler switch ignores -I option
           Product: D
           Version: 2.030
          Platform: x86
        OS/Version: Windows
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody puremagic.com
        ReportedBy: maxmo pochta.ru


dmd -run tmp.d -w -I..
tmp.d(27): Error: module myutil cannot read file 'mylib\myutil.d' line 27: --- import mylib.myutil; ---
dmd tmp.d -I.. -oftmp.exe -w
this works fine -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: -------
Jun 11 2009
parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=3062


Frits van Bommel <fvbommel wxs.nl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |fvbommel wxs.nl
         Resolution|                            |INVALID





---
This is not a bug. -run is special in that it "eats" everything after it. The
first argument afterwards is interpreted as a source file, the rest as
arguments to pass to the program it compiles to (and are therefore not used by
dmd itself).

What you want to do is "dmd -W -I.. -run tmp.d".

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