Bug 14555 – ModuleInfo should weakly link against classes

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-07T22:00:10Z
Last change time
2024-12-13T18:42:43Z
Assigned to
No Owner
Creator
Martin Nowak
Moved to GitHub: dmd#18987 →

Comments

Comment #0 by code — 2015-05-07T22:00:10Z
Currently all classes of a module are dragged into a statically linked binary because ModuleInfos contain a list of all declared classes (for Object.factory). This linkage should be done weakly instead. This does not affect shared libraries because those always contain all declarations.
Comment #1 by robert.schadek — 2024-12-13T18:42:43Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/18987 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB