[D-runtime] druntime commit, revision 483

Sean Kelly sean at invisibleduck.org
Sat Jan 8 10:57:33 PST 2011


I got a new laptop the other day and haven't fully rebuilt my Windows partition or I'd have already tested this.  I'll see about getting DMD installed today.

On Jan 8, 2011, at 1:00 AM, Jonathan M Davis wrote:

> On Saturday 08 January 2011 00:00:21 Brad Roberts wrote:
>> All three build started failing:
>> 
>> win32:
>> ../dmd/src/dmd -c -d -o- -Isrc -Iimport -Hfimport\core\thread.di
>> src\core\thread.d src\core\thread.d(1084): Error: undefined identifier
>> milliseconds
>> src\core\thread.d(1093): Error: function core.time.Duration.opCmp (in
>> const(Duration) rhs) const is not callable using argument types (_error_)
>> src\core\thread.d(1097): Error: 'val' is not a scalar, it is a Duration
>> src\core\thread.d(1097): Error: 'val' is not of arithmetic type, it is a
>> Duration src\core\thread.d(1099): Error: no property 'totalMilliseconds'
>> for type 'Duration'
> 
> I believe that line 1084 of core.thread needs to be changed to
> 
>            auto maxSleepMillis = dur!"msecs"(uint.max - 1);
> 
> Line 1095 needs to be changed to
> 
>                Sleep( cast(uint)
>                       maxSleepMillis.total!"msecs"() );
> 
> Line 1099 needs to be changed to
> 
>            Sleep( cast(uint) val.total!"msecs"() );
> 
> 
> I believe that that will fix those, but I haven't tested them. I really should 
> figure out how to build druntime in wine.
> 
> - Jonathna M Davis
> _______________________________________________
> D-runtime mailing list
> D-runtime at puremagic.com
> http://lists.puremagic.com/mailman/listinfo/d-runtime



More information about the D-runtime mailing list