Windows devs - how are you building dmd, druntime, phobos?

Exil Exil at gmall.com
Sun Jul 28 13:06:38 UTC 2019


On Friday, 26 July 2019 at 12:00:25 UTC, Atila Neves wrote:
> On Thursday, 25 July 2019 at 14:11:34 UTC, Exil wrote:
>> On Thursday, 25 July 2019 at 13:12:58 UTC, Atila Neves wrote:
>
>> I also use git bash to run a .sh script since testing DMD 
>> requires shell scripts. Need to do a workaround with 
>> vcvarsall.bat so that it loads all the appropriate environment 
>> variables.
>
> Wait... you can run the dmd shell tests with git bash?? That's 
> exactly what I was trying to enable! Any chance you can submit 
> a PR? Thanks!


You need the VS symbols so I have a "run.cmd" file which forwards 
the environment variables to git bash.

     "C:\\Program Files (x86)\\Microsoft Visual Studio 
14.0\\VC\\vcvarsall.bat" x64 && "C:\\Program 
Files\\Git\\bin\\bash.exe" build.sh


Then build.sh is the following:

     cd $ROOT/src/dmd/test
     gnumake -j4 quick LIB="../../phobos;$LIB" MODEL=64 
DMD_MODEL=64

Need to add the actual GNU make to your PATH variable as well.

Each time I need to build/run the tests though, there is a new 
problem because the files are always changing. And they only test 
for whatever narrow circumstances they are using it with. I've 
had problems building/running the "run.d" file, forget what it 
was that fixed it. Don't know if it is still an issue now. It's a 
pain in the ass.




More information about the Digitalmars-d mailing list