https://wiki.dlang.org/Building_under_Windows#Building_DRuntime
I'm following this wiki for trying to build my own. So, for adapting things to my own directory, I made the batch script as:
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
set MAKE="%CD%\make.exe"
cd druntime
set VCDIR="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC"
%MAKE% -f win64.mak "VCDIR=%VCDIR%" target
The output from the dmd's make, is:
"Error: don't know how to make 'Files'"
I'm not using the -j4
flag, because it says the flag is not supported.
Which is actually happening because of the argument "VCDIR=%VCDIR%", even though I set the VCDIR using quotations.
If I try to build phobos, I get something like
"Error: don't know how to make 'target'".
I'm using the make Digital Mars Make Version 5.06 Copyright (C) Digital Mars 1985-2012. All Rights Reserved.
An intentionally older version, as the DMD's make is not released on every build, I got it from the archive. Don't we have any kind of alternative to that make? Make is like already an alien on window's system, it mess up with PATH if someone has msys2 on the PC as "make" is a common name, like, it could be "dmdmake" or something like that.
I got some really nice options:
1- Maybe a dedicated tab on the downloads page could be nice.
2- A newer build system because make on windows is a joke.
3- Dub?