The MSCRT libs have data structures appearing in the ABI which are defined differently for each build of the lib.
Please create a builtin version which is defined for each selection of `-mscrtlib` so code can detect and match the data structures from the lib.
*** Splitting https://issues.dlang.org/show_bug.cgi?id=18999 for simplicity
Comment #1 by iamthewilsonator — 2018-08-27T06:12:56Z
Is it enough to just pass `-debug=mscrtlib` along with `-mscrtlib=libcmtd/msvcrtd`?
the do
version(Windows)
{
debug(mscrtlib)
enum = _ITERATOR_DEBUG_LEVEL = 2;
else
enum = _ITERATOR_DEBUG_LEVEL = 0;
}
this could be done automatically, of course but in the mean time the above should work.
Comment #2 by turkeyman — 2018-08-27T07:17:51Z
I have work-arounds in place. Work-arounds aren't confidence inspiring.
Shit needs to just-work right ;)
I figure settings a version for the selected crtlib offers the most information, and guarantees that we won't need any other distinction material at any later time.