On 2017-10-16 16:21, Luís Marques wrote:
How do you build an optimized build of the unit tests? That is, I want to do a dub build equivalent to
dmd -unittest -O -inline
(possibly also-debug
).
dub test --build=release
anddub test --build=release-debug
don't include the -unittest flag, and therefore don't actually run any unit tests. The other build values don't seem relevant or don't optimize.
You can create a configuration named "unittest" to override the default
one that is used when invoking "dub test". But then you would need to
redo everything the default configuration is doing.
/Jacob Carlborg