Bug 6209 – -L\implib and -H generation should follow -od flag
Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
Other
OS
Windows
Creation time
2011-06-24T11:00:00Z
Last change time
2012-01-21T15:30:30Z
Assigned to
nobody
Creator
andrej.mitrovich
Comments
Comment #0 by andrej.mitrovich — 2011-06-24T11:00:56Z
Currently calling -H to generate header files and -L\implib to create import libraries via the linker creates .di and .lib files in the current directory, regardless if the -od switch is present.
This makes it difficult to make build scripts which must keep their current working directory intact in order to resolve imports, but where the output files need to be in some subdirectory.
Comment #1 by andrej.mitrovich — 2012-01-21T15:30:30Z
-H follows -Hd"dir" for output, not -od. I didn't know this when I filed this bug.
As for -L\implib, optlink might have some switches for this but I'll have to look into it. Closing.