[dmd-internals] dmd commit, revision 657

Rainer Schuetze r.sagitario at gmx.de
Sat Sep 4 13:19:20 PDT 2010


Walter Bright wrote:
>
>
> Rainer Schuetze wrote:
>>
>> I've also tried to make the test suite run under windows (after 
>> several other tries, MSys seems to be the best shot). I patched some 
>> of the scripts before I realized that it is way easier to just fix 
>> the file name handling of dmd and optlink. With this simple patch:
>>
>
> I generally try to avoid things like this. They always seem to cause 
> trouble one way or another, and then one is stuck with it because too 
> much has grown to depend on the hack. 
The trouble is happening now, with dmd (correctly) accepting file names 
with forward slashes, but only converting the object file names to 
containing backward slashes for optlink. With the first patch that 
problem should go away without side effects.

I agree the second patch (using forward slashes for source references) 
can have a bit more dependencies. But the current output might need some 
clarification anyway. E.g. filenames in dependency files and JSON files 
have duplicate back slashes on windows. According to the reference files 
in the test suite, JSON output on linux contains file names with "\/" in 
them.


More information about the dmd-internals mailing list