Win7 64-bit

Jonathan M Davis jmdavisProg at gmx.com
Sun Mar 6 18:10:40 PST 2011


On Sunday 06 March 2011 17:48:12 Stewart Gordon wrote:
> On 01/03/2011 23:19, Dan McLeran wrote:
> > never mind, i got it. i had to pass the switches:
> > 
> > -D -unittest -cov
> > 
> > life is hard. it's even harder when you're dumb.
> 
> Would you care to enlighten the rest of us on what code you were using that
> requires those extra switches?

Yeah. That's weird. If you want to run the unit tests, you use -unittest. If you 
want code coverage, you use -unittest and -cov. If you want documentation, you 
use -D, but it has no relation to -unittest and -cov, and it isn't necessarily a 
good idea to build your code with -D normally because of the effects that 
version(D_Ddoc) could have on your code, and there are a number places in 
druntime and Phobos which won't result in valid code if you build with -D  
(until it's fixed in the next release so that druntime and Phobos' documentation 
is versioned with version(StdDoc) instead). So, _needing_ all three of those 
flags seems just plain wrong.

If you're using -cov, you probably want -unittest, but -D has no relation to the 
others and shouldn't be necessary for _anything_ other than generating 
documentation.

- Jonathan M Davis


More information about the Digitalmars-d-learn mailing list