www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - -debug phobos

reply Vathix <vathix dprogramming.com> writes:
It would be nice if a debug version of phobos gets used when -debug is  
specified. I just noticed a bug in the out contract of ifind(), which  
would have otherwise been undetected.. which makes me think, all those  
contracts aren't used.
Jan 31 2005
parent =?ISO-8859-15?Q?Anders_F_Bj=F6rklund?= <afb algonet.se> writes:
Vathix wrote:

 It would be nice if a debug version of phobos gets used when -debug is  
 specified. I just noticed a bug in the out contract of ifind(), which  
 would have otherwise been undetected.. which makes me think, all those  
 contracts aren't used.
I found that Phobos dumps a lot of crap when -debug is used, so I just took out the -release from DFLAGS for my debug lib. /usr/lib/libphobos-debug.a That still honors the contracts, even if they seem to throw AssertError instead of the correct InException/OutException ? You can find how I built it, in the RPM specfile: http://www.algonet.se/~afb/d/dmd.spec Which didn't work on FC3, for some reason ? --anders
Jan 31 2005