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