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.
Comment #1 by r.sagitario — 2013-10-03T23:53:00Z
Comment #2 by github-bugzilla — 2013-10-04T04:12:30Z
Commit pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/3e1a00951baed32c81a0e13e8d50901603a737ad Merge pull request #2626 from rainers/issue11164 fix issue 11164: do not output __main.d as dependency