digitalmars.D.learn - How to build DMD/Phobos on Windows
- Dmitry Olshansky (34/34) Aug 24 2022 It's been a long time but I've found some spare hours I want to
- rikki cattermole (7/7) Aug 24 2022 For dmd you use build.d that is in the repository.
- bauss (4/11) Aug 25 2022 We really need a page in the documentation that describes how to
- Nick Treleaven (9/11) Sep 01 2022 There is on the wiki, but it's out of date:
- Dmitry Olshansky (6/13) Aug 25 2022 Hm, I guess the makefiles should be deleted?
- Dukc (5/10) Sep 01 2022 Thanks, much appreciated!
It's been a long time but I've found some spare hours I want to devote to finally updating our std.uni to Unicode 14 (soon to migrate to 15 I guess). I downloaded source code of DMD/Phobos as usual and dropped them in the src folder of unpacked 7z distribution archive. Now time to build. Since DMD doesn't ship make anymore I guessed I needed a GNU make so I got that. Doing make -f win32.mak shows an endless stream of make entering the folder and then leaving it. make[45]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak make[46]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak make[47]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak make[48]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak make[49]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak make[50]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak make[51]: Entering directory 'C:/exp/dmd2/src/dmd' cd compiler\src make -f win32.mak Trying to run any makefiles in compiler/druntime folders do not produce anything useful either. So what is the canonical way to build D on Windows? Any pointers would be greately appreciated.
Aug 24 2022
For dmd you use build.d that is in the repository. For phobos win64.mak (used for 32bit by default as well): Windows MSVC" So MSVC make. Beyond that idk, but its starting point (oh and druntime is now in dmd repo, so ugh... yeah)
Aug 24 2022
On Wednesday, 24 August 2022 at 21:11:42 UTC, rikki cattermole wrote:For dmd you use build.d that is in the repository. For phobos win64.mak (used for 32bit by default as well): for Windows MSVC" So MSVC make. Beyond that idk, but its starting point (oh and druntime is now in dmd repo, so ugh... yeah)We really need a page in the documentation that describes how to build each component of D for each major platform.
Aug 25 2022
On Thursday, 25 August 2022 at 07:22:32 UTC, bauss wrote:We really need a page in the documentation that describes how to build each component of D for each major platform.There is on the wiki, but it's out of date: https://wiki.dlang.org/Building_under_Windows build.d works for dmd, but I haven't been able to build druntime for a while, even before the repo was merged into dmd's. (What I do is just rename and move dmd to a folder with existing druntime installed, but that doesn't really work beyond simple uses as it gets out of sync as the implementation changes). Last time I tried digger, even that didn't work. This is a problem.
Sep 01 2022
On Wednesday, 24 August 2022 at 21:11:42 UTC, rikki cattermole wrote:For dmd you use build.d that is in the repository.Hm, I guess the makefiles should be deleted?For phobos win64.mak (used for 32bit by default as well): for Windows MSVC" So MSVC make.It’s a shame as I cannot install MSVC on this laptop (permissions).Beyond that idk, but its starting point (oh and druntime is now in dmd repo, so ugh... yeah)Yeah, I see that build become more involved.
Aug 25 2022
On Wednesday, 24 August 2022 at 18:06:29 UTC, Dmitry Olshansky wrote:It's been a long time but I've found some spare hours I want to devote to finally updating our std.uni to Unicode 14 (soon to migrate to 15 I guess).Thanks, much appreciated!So what is the canonical way to build D on Windows? Any pointers would be greately appreciated.Don't know since I don't use Windows anymore but if all else fails it probably works on WSL.
Sep 01 2022