[Issue 9723] add missing main() when compiling exe with -unittest

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 14 17:03:13 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9723



--- Comment #4 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2013-03-14 17:03:12 PDT ---
(In reply to comment #3)
> (In reply to comment #2)
> > No need to worry about libraries with main() in it -
> > nothing to pull it in.
> 
> What do you mean by that?
> 
> Also we have --main in RDMD that is used exactly for this purpose. Why not just
> move this switch over to DMD instead of doing magic that stops working as soon
> as you add separately-compiled dependencies?

Also, by doing it as a switch we can keep compatibility with RDMD, all it has
to do is call DMD's -main switch instead of making a separate file with main in
it. So old code continues to work.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list