Am 16.10.2017 um 16:21 schrieb Luís Marques:
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.
There are two possibilities. Either define DFLAGS="-unittest -O -inline"
and then run "dub test", or define a custom build type in the package
recipe to either override "unittest", or to define a new
"unittest-release" one (json/sdlang).