release build with debug information?

Adam D. Ruppe destructionator at gmail.com
Tue May 21 12:50:06 UTC 2019


On Tuesday, 21 May 2019 at 09:48:34 UTC, Robert M. Münch wrote:
> Is it possible to compile a release build with debug 
> information?

with plain dmd

dmd -g -release -O

or

dmd -g -release -debug -O


The -g is debug info. The -debug switch turns on `debug` code 
blocks. -O turns on optimizations. -release removes asserts and 
adds potential security holes to your application.

You can use all of these independently or together in any 
combination.


More information about the Digitalmars-d-learn mailing list