Bug 9483 – Distribute both development and release builds of phobos.lib / libphobos.a

Status
NEW
Severity
enhancement
Priority
P4
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-02-08T05:08:57Z
Last change time
2024-12-13T18:04:04Z
Assigned to
No Owner
Creator
Stewart Gordon
Moved to GitHub: dmd#17572 →

Comments

Comment #0 by smjg — 2013-02-08T05:08:57Z
It's been complained about a number of times that, while Phobos uses DbC, we as users of Phobos don't get the benefit of this because the distributed Phobos library has been compiled in release mode. Unless we build Phobos in development mode ourselves. This has also in the past led to anomalies like issue 796. As such, we should have both the development and the release build in the distribution. Maybe call them phobos_d.lib and phobos_r.lib or something. And when linking through DMD, decide which one to link in automatically based on whether the -release switch has been specified. When/if issue 9482 is dealt with, we can distribute the release-with-in-contracts build as the development build. (Does this count as a Phobos issue or a DMD issue? Really, it's the DMD package, more than dmd.exe itself or Phobos itself....)
Comment #1 by robert.schadek — 2024-12-13T18:04:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/17572 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB