Running unittests with optimizations enabled
Guillaume Piolat
first.last at gmail.com
Mon Mar 4 14:19:37 UTC 2019
Hello,
Here is a copy-and-paste tutorial about running unittests with
optimizations.
https://p0nce.github.io/d-idioms/#Unittests-with-optimizations-:-the-Final-Frontier
This has a number of benefits, in particular this expose DMD
codegen bugs more readily. Because organizations may depend on
LLVM backend for production, which has more stable codegen,
traditionally it can be a bit fruitless to test DMD releases with
optimizations on. Hence, DMD codegen bugs gets _avoided_ instead
of reported.
Your existing test suite may well be useful to find more DMD
codegen bugs and frontend ICE.
More information about the Digitalmars-d
mailing list