How to unit-test a phobos module?

Max Haughton maxhaton at gmail.com
Thu Nov 26 04:44:43 UTC 2020


On Wednesday, 25 November 2020 at 21:36:36 UTC, Q. Schroll wrote:
> On Wednesday, 25 November 2020 at 21:16:15 UTC, Steven 
> Schveighoffer wrote:
>> I typically do:
>>
>> make -f posix.mak std/<module>.test
>>
>> -Steve
>
> For some reason, [1] says `make.exe` would be installed by the 
> DMD installer, but I found none. It explicitly says not to use 
> GNU make. (I'm on Windows.)
>
> [1] https://wiki.dlang.org/Building_under_Windows

The digital mars make is actually distributed with the c compiler.

Developing on Windows is such a complete pain e.g. setting it up 
so it can find the linker and cl. For that reason I currently 
just do all dmd/phobos/druntime hacking inside WSL because that 
way I can just press build (dmd has build.d which is 
cross-platform but druntime and phobos both aren't fun to build 
on windows unless you've done it recently)


More information about the Digitalmars-d-learn mailing list