<div dir="ltr"><div class="gmail_quote">Poking the mail list as it doesn't seem to be explained in details on<br>
<a href="http://dlang.org" rel="noreferrer" target="_blank">dlang.org</a><br>
<br>
Recently we got to situation where it has become necessary to package<br>
both debug and release builds of runtime because keeping<br>
asserts/contracts in runtime has huge negative performance impact (2x<br>
slowdown for some of our projects). I hoped to make use of built in<br>
-defaultlib / -debuglib switches to link to correct one automatically<br>
but was quite surprised to find out that -debuglib is only used when -g<br>
flag is supplied. Presence or absence of -release / -debug make no<br>
difference here, only -g.<br>
<br>
Is this by design? Would that be something you could consider changing?<br>
Keeping debug symbols in libraries has very low performance impact<br>
compared to keeping contracts, there doesn't seem to be any practical<br>
reason to connect linking special kind of library to it.</div></div>