View mode: basic / threaded / horizontal-split · Log in · Help
February 08, 2013
[Issue 9483] New: Distribute both development and release builds of phobos.lib / libphobos.a
http://d.puremagic.com/issues/show_bug.cgi?id=9483

          Summary: Distribute both development and release builds of
                   phobos.lib / libphobos.a
          Product: D
          Version: unspecified
         Platform: All
       OS/Version: All
           Status: NEW
         Severity: enhancement
         Priority: P2
        Component: DMD
       AssignedTo: nobody@puremagic.com
       ReportedBy: smjg@iname.com


--- Comment #0 from Stewart Gordon <smjg@iname.com> 2013-02-08 05:08:57 PST ---
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....)

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Top | Discussion index | About this forum | D home