[Issue 2726] New: linker does not add "unused" module info

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Mar 10 08:28:21 PDT 2009


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

           Summary: linker does not add "unused" module info
           Product: D
           Version: 1.041
          Platform: Macintosh
        OS/Version: Mac OS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzilla at digitalmars.com
        ReportedBy: fawzi at gmx.ch


on OSX the moduleInfo list (beteween _minfo_beg and _minfo_end) does not
include "unused" modules.

This is a nice optimization, and makes sense, but it would be nice to have a
way to disable it.

As it is now most unitest executing programs (programs that execute all
unittests of all modules) do not work, because their list of module to test is
empty (as they did not import it.

At minimum this behaviour should be documented, so that one knows it.


-- 



More information about the Digitalmars-d-bugs mailing list