Bug 3062 – -run compiler switch ignores -I option

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2009-06-11T06:20:00Z
Last change time
2015-06-09T01:27:57Z
Keywords
rejects-valid
Assigned to
nobody
Creator
dfj1esp02

Comments

Comment #0 by dfj1esp02 — 2009-06-11T06:20:44Z
>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
Comment #1 by fvbommel — 2009-06-11T06:30:51Z
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".