dmd -unittest=<pattern> (same syntax as -i)

Jonathan Marler johnnymarler at gmail.com
Thu Mar 15 23:21:42 UTC 2018


On Thursday, 15 March 2018 at 23:11:41 UTC, Johannes Pfau wrote:
> Am Wed, 14 Mar 2018 14:22:01 -0700 schrieb Timothee Cour:
>
>> [...]
>
> And then we'll have to add yet another "-import" switch for DLL 
> support. Now we have 3 switches doing essentially the same: 
> Telling the compiler which modules are currently compiled and 
> which modules are part of an external library. Instead of just 
> using the next best simple solution, I think we should take a 
> step back, think about this and design a proper, generic 
> solution.
>
> [...]

I had the same idea but mine was to add this metadata in the 
library file itself instead of having it as a separate file.  
However, this design is "orthogonal" to -i= and -unittest=,  in 
both cases you may want to include/exclude certain modules 
regardless of whether or not they are in a library.


More information about the Digitalmars-d mailing list