[Bug 199] unittests not linked unless module is imported
via D.gnu
d.gnu at puremagic.com
Wed Jun 28 23:03:56 PDT 2017
https://bugzilla.gdcproject.org/show_bug.cgi?id=199
Johannes Pfau <johannespfau at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |WONTFIX
Status|ASSIGNED |RESOLVED
--- Comment #2 from Johannes Pfau <johannespfau at gmail.com> ---
I think DMD has got the same problem and now there's the workaround of linking
the tests into a shared library instead, so closing as WONT FIX.
AFAIK there's no way to really make static libraries work for this, as the
linker always only pulls required objects in, except when using
-Wl,--whole-archive.
A solution is to directly link all objects instead of creating an archive
(which is what we do for druntime & phobos tests now to avoid this problem).
--
You are receiving this mail because:
You are watching all bug changes.
More information about the D.gnu
mailing list