Bug 2726 – linker does not add "unused" module info
Status
RESOLVED
Resolution
WORKSFORME
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D1 (retired)
Platform
PowerPC
OS
Mac OS X
Creation time
2009-03-10T10:28:00Z
Last change time
2014-04-18T09:12:05Z
Assigned to
nobody
Creator
fawzi
Comments
Comment #0 by fawzi — 2009-03-10T10:28:23Z
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.