When -debug is specified DMD should ideally link against the microsoft debug c-runtime so that some of hte nice debugging features inside this debug runtime can be used. Such as _CrtDbgReport malloc / free with debug checks and others.
Currently DMD always references LIBCMT. It should reference LIBCMTD in debug.
Comment #1 by turkeyman — 2014-01-22T02:26:50Z
I agree, but it also needs an option to choose one specifically too like MSC.
Comment #2 by robert.schadek — 2024-12-13T18:08:02Z