Bug 11164 – wrong dependencies generated when compiling with -main
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-10-03T11:57:00Z
Last change time
2013-10-04T04:12:41Z
Keywords
pull
Assigned to
nobody
Creator
r.sagitario
Comments
Comment #0 by r.sagitario — 2013-10-03T11:57:18Z
Compiling with both -main and -deps=file generates a dependency to __main.d:
> echo module a; >a.d
> dmd -deps=dep -main a.d
> type dep
a (a.d) : private : object (c:\\l\\dmd2.063\\windows\\bin\\..\\..\\src\\druntime
\\import\\object.di)
__main (__main.d) : private : object (c:\\l\\dmd2.063\\windows\\bin\\..\\..\\src
\\druntime\\import\\object.di)
This confuses build tools.
Very similar to issue 11117.