www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 2726] New: linker does not add "unused" module info


           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 digitalmars.com
        ReportedBy: fawzi 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.

Mar 10 2009