Skip to content

Commit

Permalink
do not output __main as dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
rainers committed Oct 4, 2013
1 parent efcd62c commit f36091d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/import.c
Expand Up @@ -279,8 +279,9 @@ void Import::semantic(Scope *sc)
if (global.params.moduleDeps != NULL &&
// object self-imports itself, so skip that (Bugzilla 7547)
!(id == Id::object && sc->module->ident == Id::object) &&
// don't list pseudo module __entrypoint.d (Bugzilla 11117)
sc->module->ident != Id::entrypoint)
// don't list pseudo modules __entrypoint.d, __main.d (Bugzilla 11117, 11164)
sc->module->ident != Id::entrypoint &&
strcmp(sc->module->ident->string, "__main") != 0)
{
/* The grammar of the file is:
* ImportDeclaration
Expand Down

0 comments on commit f36091d

Please sign in to comment.